Jump to content

Best Method


Recommended Posts

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 :)

Link to comment
Share on other sites

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

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...