bobthenob Posted December 20, 2005 Posted December 20, 2005 hi im trying to make a autot script,that pastes a serial number into, a registration boxthe serial number is in 6 linesI figured out that if i put the first line,then send('{ENTER}')then the next line andsend('{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 workcheers
BoardBabe Posted December 20, 2005 Posted December 20, 2005 If you had posted the line your using it would be of great help But anyhow, I'd do something likeSend("{ENTER}" & $string1 & "{ENTER}" & $string2")
bobthenob Posted December 20, 2005 Author Posted December 20, 2005 hi thanks for your replythe line im using is my serial heres the part with the + symbolSEND("bF+qbmLvEjV+4JCAX+H/TBpG7pdEJ8IEW09ST8t60Poou/CT")SEND('{ENTER}')SEND("To+WvErl omRpMfd15+/2EA/SbxzdwKmX6ybVAYnLe4g3che")SEND('{ENTER}')when i send this the + are missingCheers
Nologic Posted December 20, 2005 Posted December 20, 2005 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 Posted December 21, 2005 Author Posted December 21, 2005 thanks Nologicthe Send ("+foo+", 1) worked a treatI dont understand the ControlSetText ( "title", "text", "Edit1", "+line 1+" & @LF & "+line 2+" & @LF & "+line 3+" )could you exsplan it please using this textfghjkloiuklioyu76+hj+llpHJY76po+u7sorry to be so dumbthanks again
BoardBabe Posted December 21, 2005 Posted December 21, 2005 @bobthenob: Please use CODE tags in your posts from now on
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now