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
mewfasa