Jump to content

Autoclicker


Recommended Posts

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
Link to comment
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
 Share

  • Recently Browsing   0 members

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