Sign in to follow this  
Followers 0
yalag

What function to call to hold a key for X seconds?

3 posts in this topic

Which function should I call to hold a key for X seconds?

Thanks

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Send("{a down}") ;Holds the A key down
Sleep(x seconds)
Send("{a up}") ;Releases the A key

:P

Edited by backstabbed

tolle indicium

Share this post


Link to post
Share on other sites

- "Ok, I want to hold down a key on my keyboard..how to do that ?"

Helpfile -> Function Reference -> Keyboard Control -> ...

Logic and not really that hard to find..

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