I'm trying to make a toggle macro, which does the following:
1. Pressing number 2 toggles the macro on and off
2. When macro toggle is on, hold down right mouse button
3. When left mouse button is clicked or held during toggle, pause everything for a second before continuing to hold right mouse button again
This is what I have so far, and I know it doesn't work, so if anyone could help, it would be greatly appreciated. Thanks!
Code: Select all
#MaxThreadsPerHotkey, 2
$2::
Toggle := !Toggle
While (Toggle) {
if GetKeyState("LButton","p") {
sleep 1000
continue
}
else {
send Click Right Down
sleep 0
}
}
return