The script should to the following:
Press 'C': Start/Stop script
Left Mouse Button: Start/Stop the loop
Inside the loop: While holding down the Left Mouse Button, the left mouse button is repeated till I lift my finger of it.
- The mouse goes back to the center of the screen after every click.
Alternative the mouse is moved X pixel down after each click and my script is very slow. It goes click .. click .. click instead of ClickClickClick :(.
I changed it to this now, but the Left Mouse Button is always activated even when not holding it down, I can't stop/start the script with C too.
HotKey, ~$*LButton, myLButtonAction ; Activate the hotkey by default
return
~c:: ; configure a Hotkey: c will enable / disable your LButton actions
HotKey, ~$*LButton, toggle ; ON / OFF
return
myLButtonAction: ;cnote: this is NOT a hotkey, it's a label
Loop
{
Click
Sleep 7,516 ;your loop actions (see question code)
}
return ; don't forget your returns at the end of a label / hotkey