Sign in to follow this  
Followers 0
Nanaki

Holding down a key during runtime

5 posts in this topic

Well, I want to hold down a key from the start of the program until it ends. Is it possible?

Share this post


Link to post
Share on other sites



Use the Send() function. For more info see the help file.

Share this post


Link to post
Share on other sites

No kidding. :D

No, I want to start holding a key when the script starts. And I want to release that same key when the scripts ends. Like SHIFT is hold throughout the runtime. :)

Share this post


Link to post
Share on other sites

From the help file:

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

Since you didn't specify which key you want, so you need to adjust that example.


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

Holy crap, I've looked one hour at the help file to miss that? :)

Tnx CyberSlug and SlimShady! ^^

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