Jump to content

Autoit serial paste


bobthenob

Recommended Posts

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

Link to comment
Share on other sites


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

Link to comment
Share on other sites

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+" )

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...