Jump to content

Recommended Posts

Posted

Well, there is a PC game i play, and in game, i have rigged the attack button to be the humble Spacebar, which also targets the enemy at the same time. So, i was trying to figure out how to get AutoIt to press the spacebar automatically for me looped for about 120 keystrokes of the spacebar per minute, to run for about 2 hours. Can AutoIt be used to do exactly this?

Posted

Use this script

;//Loop space bar input
While 1
    Send ("{SPACE}")
;//Sleep for half a second before next loop
    Sleep (500)
;//This allows for exacltey 120 presses per minute
WEnd

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
  • Recently Browsing   0 members

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