Jump to content
Sign in to follow this  
Rydextillxixdiex

Best Method

Recommended Posts

Rydextillxixdiex

What is the best method for sending simple keyboard functions within a game? Is it ControlSend()? Also how do i use the

{UP down} Sleep(5000)
so that the button will be help down for 5 seconds and then released. Also can you hold down two buttons simultaneously? Such as the up arrow and the right arrow?

Thanks for your help.


...will never learn all there is to know about autoit, no worries...i came to the forums :)

Share this post


Link to post
Share on other sites
Valuater

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

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

Sleep(5000)

; do something else?

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

more that one key can be held-down at the same time

I am not sure about the up arrow and the right arrow

8)

Edited by Valuater

NEWHeader1.png

Share this post


Link to post
Share on other sites
Rydextillxixdiex

Alright thanks :)


...will never learn all there is to know about autoit, no worries...i came to the forums :)

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  

×