Is there a way/utility to activate CAPS LOCK only after the key has been held down for one second or more? I don't want to completely disable it, just prevent accidental activation of this function.
Can AutoHotkey be scripted to do this?
This can indeed be done with an AHK timer-script. This script will register when Caps Lock is pressed and intercept Capslock Up, allowing it to fire only if a certain number of milliseconds has passed. The default timeout is 0.2 sec, this can be configured in the system tray.
I've got two AHK scripts here. If you want me to explain further than what I've commented in the scripts, please add a comment below.
The first one is more complex and probably prone to failure, but it sends CapsLock as a literal keypress after holding for one second.
The second one toggles the state of "Caps Lock", which may not be desirable if the reason you want the delay is for some other program's CapsLock hotkey.
You can configure the delay by changing the
Sends a literal "CapsLock" keypress
Toggles "Caps Lock" state:
A google search gave me this link to http://chuchuva.com/software/capslockdelay/. The first of the three download links still works.
I don't know about the AutoHotKey script. Maybe google for AutoHotKey and caplock delay.