Jump to content

how to hold down a button


Recommended Posts

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)

Link to comment
Share on other sites

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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...