I am looking for a way to have the CAP LOCK key be pressed for 2 seconds before it is activated.
Has this been done before?
Thanks
Require CAP LOCK press for 2 seconds
Re: Require CAP LOCK press for 2 seconds
I hope this helps
Code: Select all
caps_delay := 2 ; seconds
;-------------------
SetCapsLockState, Off
capsState := false
caps_delay := caps_delay * 250
CapsLock::
Loop, 4
{
if(!GetKeyState("CapsLock", "p"))
{
return
}
Sleep, %caps_delay%
}
if(capsState)
{
SetCapsLockState, Off
capsState := false
}
else
{
SetCapsLockState, On
capsState := true
}
return
Re: Require CAP LOCK press for 2 seconds
Please use the Ask for Help forum next time!
Who is online
Users browsing this forum: No registered users and 221 guests