Sign in to follow this  
Followers 0
Foderus

Send("{CTRL}")

4 posts in this topic

#1 ·  Posted (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 by Foderus

Share this post


Link to post
Share on other sites



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.

Share this post


Link to post
Share on other sites

Using Send("{RCTRL}") worked, so nevermind. Cant believe it took me this long time to find it...

Share this post


Link to post
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
Sign in to follow this  
Followers 0