Help - Search - Members - Calendar
Full Version: Autoit serial paste
MSFN Forums > Unattended Windows Discussion & Support > Application Installs

   


Google Internet Forums Unattended CD/DVD Guide
bobthenob
hi im trying to make a autot script,
that pastes a serial number into, a registration box
the serial number is in 6 lines
I figured out that if i put the first line,then
send('{ENTER}')
then the next line and
send('{ENTER}')
it pastes it in correctly but the serial no has + symbols in it and they dont get pasted in, ive been playing with
clipget and clipput.
but cant seem to get it to work
cheers
BoardBabe
If you had posted the line your using it would be of great help newwink.gif

But anyhow, I'd do something like

CODE
Send("{ENTER}" & $string1 & "{ENTER}" & $string2")
bobthenob
hi thanks for your reply
the line im using is my serial heres the part with the + symbol
SEND("bF+qbmLvEjV+4JCAX+H/TBpG7pdEJ8IEW09ST8t60Poou/CT")
SEND('{ENTER}')
SEND("To+WvErl omRpMfd15+/2EA/SbxzdwKmX6ybVAYnLe4g3che")
SEND('{ENTER}')

when i send this the + are missing
Cheers
Nologic
Thats because when using "Send" or "ControlSend" the "+" marks the next character as shifted.

To change this behavior simply set the flag for the command to 1.

Send ("+foo+", 1)

How ever I'd really suggest staying clear of Send & ControlSend if possible and instead use ControlSetText.

ControlSetText ( "title", "text", "Edit1", "+line 1+" & @LF & "+line 2+" & @LF & "+line 3+" )
bobthenob
thanks Nologic
the Send ("+foo+", 1) worked a treat
I dont understand the
ControlSetText ( "title", "text", "Edit1", "+line 1+" & @LF & "+line 2+" & @LF & "+line 3+" )

could you exsplan it please
using this text
fghjkloiuklio
yu76+hj+llp
HJY76po+u7

sorry to be so dumb
thanks again
BoardBabe
@bobthenob: Please use CODE tags in your posts from now on smile.gif
bobthenob
ok sorry




Google Internet Forums Unattended CD/DVD Guide

This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.