Foderus Posted July 19, 2012 Posted July 19, 2012 (edited) Hello! Send("{CTRL}") does not work, im making a script that will login, change password, and send a new mail to the user with the new password. The only thing i want to do is to Send a Control keystroke, using "Send("{CTRLDOWN}") Send("{CTRLUP}")" does'nt work since the program does'nt recognise it as pressing CTRL on the keyboard. I've tried looking around in the help and on this forum but havent found anything that works. Any ideas? This is the sequence that did not work: Sleep(2000) Send("2") Send("{TAB}") Send(GUICtrlRead($userSTIS)) Send("{CTRLDOWN}") Send("{CTRLUP}") Send("{TAB}") Send("{TAB}") Send("{TAB}") Send("Y") Send("{CTRLDOWN}") Send("{CTRLUP}") Send("{TAB}") Send($sPassword) Send($sPassword) Send("{TAB}") Send("{TAB}") Send("{TAB}") Send("{TAB}") Send("{TAB}") Send("{TAB}") Send("Y") Send("{CTRLDOWN}") Send("{CTRLUP}") Edited July 19, 2012 by Foderus
Foderus Posted July 19, 2012 Author Posted July 19, 2012 Also tried using Sleep(100) between CTRLUP and CTRLDOWN, just to see if the program recognized the keypress with alittle delay, but with no success.
Foderus Posted July 19, 2012 Author Posted July 19, 2012 Using Send("{RCTRL}") worked, so nevermind. Cant believe it took me this long time to find it...
JohnOne Posted July 19, 2012 Posted July 19, 2012 On 7/19/2012 at 12:05 PM, 'Foderus said: Using Send("{RCTRL}") worked, so nevermind. Cant believe it took me this long time to find it...What, 6 minutes, that aint so bad. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
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