Sign in to follow this  
Followers 0
sydok

Quick question about SendKeyDownDelay

3 posts in this topic

Would

Opt("SendKeyDownDelay", 150)

Send("!1")

work the exact same as

Send("{ALT} down")

Send("1 down")

Sleep(150)

Send("1 up")

Send("{ALT} up")

?

From what I've read in the help file it seems it would, the real question is if it works with the alt key and the 1 key simultaneously.

Thanks in advance.

Share this post


Link to post
Share on other sites



Make sure to put "up" and "down" inside of {}, and notice that "ALTDOWN" is used instead of "Alt down":

Send("{ALTDOWN}{1 down}")

Sleep(150)

Send("{1 up}{ALTUP}")

I'm not sure about the timing. Do you want a 150 ms delay after each keypress: Altdown <delay> 1 down <delay> 1 up <delay> AltUp ?


Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!

Share this post


Link to post
Share on other sites

I'm currently useing a script that uses the down and up method and it's running fine.

Send ("{ALT down}")

Send ("{3 down}")

Sleep(0150)

Send ("{3 up}")

Send ("{ALT up}") 

That was copy and pasted from the script. I guess my question is, will

Opt("SendKeyDownDelay", 150)

Send("!1")

hold down both alt and 1 for 150 milliseconds in the same manner as the down>up method I've been useing?

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