Delay numlock
Delay numlock
I want a code that doesn't do anything if numlock is pressed but if it is held down for like 5 seconds then it still can send numlock. Is there any way to write code for this, I tired using SetKeyDelay but had no success. Any help would be appreciated!
Re: Delay numlock
Code: Select all
NumLock::
Keywait, NumLock, T5
if ErrorLevel ;timeout -> button held
SetNumLockstate,% GetKeyState("NumLock","T") ? "Off" : "On"
Return