doyoulikecheese Posted May 31, 2007 Share Posted May 31, 2007 (edited) I am trying to make an auto clicker that has "e" to start it and "f" to exit the loop, and "esc" to exit the whole script. Here's my idea, but it doesn't work. $q=0 HotKeySet('{Esc}', '_Exit') HotKeySet('{f}', '_loopdie') HotKeySet('{e}', 'go') func go() While 1 MouseClick('left') If $q=20 Then ExitLoop Wend $q=0 EndFunc Func _Exit() Exit EndFunc Func _loopdie() $q=20 EndFunc Edited May 31, 2007 by doyoulikecheese Link to comment Share on other sites More sharing options...
AllSystemGo Posted May 31, 2007 Share Posted May 31, 2007 What exactly doesn't work??? Link to comment Share on other sites More sharing options...
doyoulikecheese Posted May 31, 2007 Author Share Posted May 31, 2007 What exactly doesn't work???The whole thing. I'll run the script, and it just won't go... It won't show up. Link to comment Share on other sites More sharing options...
evilertoaster Posted May 31, 2007 Share Posted May 31, 2007 $go=false HotKeySet('{Esc}', '_Exit') HotKeySet('f', '_loopdie') HotKeySet('e', 'go') while 1 While $go MouseClick('left') Wend WEnd func go() $go=true EndFunc Func _loopdie() $go=false EndFunc Func _Exit() Exit EndFunc Starts when you press e, stops when you press f (or esc) Link to comment Share on other sites More sharing options...
doyoulikecheese Posted May 31, 2007 Author Share Posted May 31, 2007 Thanks, I didn't think about those true-false things... Ty a lot. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now