Jump to content

Recommended Posts

Posted (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 by doyoulikecheese

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
×
×
  • Create New...