Code: Select all
Hey im a noobie to ahk i was wondering if there is anyway to make a script that: "if the mouse position is the same as 10 secs ago send r" any help would be appreciated :D
Code: Select all
Hey im a noobie to ahk i was wondering if there is anyway to make a script that: "if the mouse position is the same as 10 secs ago send r" any help would be appreciated :D
Code: Select all
#Persistent
MouseGetPos, Xold, Yold
MoveTime := A_TickCount + 10000
SetTimer, Mouse, 100
Return
Mouse:
MouseGetPos, X, Y
If (X <> Xold Or Y <> Yold)
{
MoveTime := A_TickCount + 10000
Xold := X, Yold := Y
}
If (MoveTime < A_TickCount)
{
SendInput, r
MoveTime := A_TickCount + 10000
}
Return