Jump to content
Sign in to follow this  
Mutalgaettae

how to hold down a button

Recommended Posts

Mutalgaettae

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
whim

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
AdmiralAlkex

Mom ate your helpfile?

:)

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

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.