i'm tring to get a key held for 300ms and active some action,but it keeps activing that action over and over again if i keep holding the key.
i've tried to use $ and A_TimeSincePriorHotkey,all didn't help.
$r::
if (A_PriorHotkey = "r" and A_TimeSincePriorHotkey < 100)
return
keywait, r, T0.3
if (ErrorLevel = 1)
{
GetKeyState, Mode, NumLock, T
if (Mode="U")
SetNumLockState ON
else
SetNumLockState OFF
send {r up}
}
else
send {r}
return