Sign in to follow this  
Followers 0
Psychoclick

Automatic Keystrokes?

2 posts in this topic

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?

Share this post


Link to post
Share on other sites



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

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