Sign in to follow this  
Followers 0
blah7

Need keystrok script

6 posts in this topic

could some one make me a script that spams the keystrok A and S when i hit F10 and hit F10 to stop the keystrokes ??? thx :whistle:

Share this post


Link to post
Share on other sites



:whistle: its for wc3, my fingers are tired of buying tomes

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

fine...

hotkeyset("{f10}", "doit")

func doit()
hotkeyset("{f10}", "stop")
while 1
send("a")
send("s")
wend
endfunc

func stop()
exit
endfunc

while 1
sleep(100)
wend

I havent tested it. im on a mac but it should work.

Edited by spyrorocks

Share this post


Link to post
Share on other sites

There is such a great helpfile(s) with AutoIT, and one of the basics is Send, if you study it a bit, then you might be able to do it on your own, instead of asking?

I did, and it makes repetative tasks so much simpler, just put a little time in it, and you see that the potentials are way bigger.

Kind Regards, Starf0x :">

Share this post


Link to post
Share on other sites

Note - Autoit types too fast for WC3 by default, so put a few sleep(100) in between the sends

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