Stop auto click on mouse move?

Ask gaming related questions (AHK v1.1 and older)
mewfasa
Posts: 1
Joined: 17 Jun 2021, 11:26

Stop auto click on mouse move?

17 Jun 2021, 11:50

Hi guys,

I have an AHK script I've used for a while that just auto clicks when i press F8 and turns off when I press F8 again. The problem is many times i forget to press F8 to turn it off and move my mouse and am clicking everywhere. I would like a way to press F8 to turn it on but then have it turn off if it detects the mouse moves if this is even possible. Here is the script I have been using:

Code: Select all

SetTimer Click, 100

F8::
Toggle := !Toggle

Click:
    If (!Toggle)
        Return
    Click
return
Thanks,
mewfasa
User avatar
Hellbent
Posts: 2109
Joined: 23 Sep 2017, 13:34

Re: Stop auto click on mouse move?

17 Jun 2021, 12:52

This one should do the trick for you.






Smart Clicker v1.2.2

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: yuu453 and 73 guests