Sign in to follow this  
Followers 0
Mutalgaettae

how to hold down a button

3 posts in this topic

I understand send or control send will press a button

but how do u hold it for a controlled time?

Share this post


Link to post
Share on other sites



To hold a key down (generally only useful for games)

Send("{a down}") ;Holds the A key down

Send("{a up}") ;Releases the A key

... and 5 topics down from 'Send' in the same help file:

SendKeyDownDelay (Option)

HTH,

whim

PS If you have an AutoIt function that does not work for you,

or behaves unexpectedly, put your cursor before it's first

character, and press F1 (or Alt-F1 if running beta)

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