Jump to content
Sign in to follow this  
doyoulikecheese

Autoclicker

Recommended Posts

doyoulikecheese

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

Share this post


Link to post
Share on other sites
AllSystemGo

What exactly doesn't work???

Share this post


Link to post
Share on other sites
doyoulikecheese

What exactly doesn't work???

The whole thing. I'll run the script, and it just won't go... It won't show up.

Share this post


Link to post
Share on other sites
doyoulikecheese

Thanks, I didn't think about those true-false things...

Ty a lot.

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  

×