3 ms·
Here's an AHK script I've had since 2007 (omg, I'm too old). Adds a delay (press-and-hold to enable/disable) to capslock. Not exactly what you want, but I loved
by mmh0000 2y ago
Here's an AHK script I've had since 2007 (omg, I'm too old). Adds a delay (press-and-hold to enable/disable) to capslock. Not exactly what you want, but I loved it and it should be easy to modify to do what you want:
CAPSLKTOOLTIP:
ToolTip,
SetTimer,CAPSLKTOOLTIP,Off
Return
SetTimer,CAPSLKTOOLTIP,1500
SetTimer,CAPSLKTOOLTIP,Off
CapsLock::
counter := 0
Loop,20
{
Sleep, 40
counter++
GetKeyState,state,CapsLock,P
If state=U
Break
If counter >= 20
{
counter := 0
GetKeyState,state,CapsLock,T
If state=D
{
ToolTip,Caps Lock Off
SetCapsLockState,Off
}
Else
{
ToolTip,Caps Lock On
SetCapsLockState,On
}
keyWait, Capslock, U
SetTimer,CAPSLKTOOLTIP,On
Continue
}
}
Return