Sign in to follow this  
Followers 0
DaUberBird

Hold X key for X seconds

6 posts in this topic

I haven't been able to find any real methods of holding a key down, I have seen stuff that just repeats the key, I tried like

SendKeyDownDelay 5000

then

Send("{LEFT down}")

and it didn't hold down the left key for 5 seconds.

Please help!

Thanks!

DaUberBird

Share this post


Link to post
Share on other sites



That repeats the key, I don't want it to repeat, I want it to be held down.

Share this post


Link to post
Share on other sites

That repeats the key, I don't want it to repeat, I want it to be held down.

You'll have to find another way then if SendKeyDownDelay() doesn't work... I'm curious though, what does the function do that I sent you the link to, that holding the "left" key down for 5 seconds doesn't do?

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

It seems to just repeat the key, SendKeyDownDelay doesn't seem to work at all for me... I can test by running a script with sendkeydowndelay onto 5000 and send left down and it doesnt hold down left for 5 seconds

Share this post


Link to post
Share on other sites

Some windows games may not allow the option, why don't you post what your trying to do this on, and maybe we (the forum) may have a solution for you.


[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

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