What I need it to do is:
Press key if mouse cursor passes a barrier coord (x > 960) but only once! then if the cursor moves to (x < 960) I need it to repeat the loop (separate macro making that happen), I have no control over the exact time I want it to to repeat this so it's pretty much triggers? I also fail at stopping key spam once ( x > 960) without putting a return.
Code: Select all
#MaxThreadsPerHotKey 3
#NoEnv
F3::
Loop
{
MouseGetPos, X, Y
if (x > 960)
Send {``}
Sleep, 1000
}
return