I'm trying to add more function to button "CapsLock", wanted to have mode short-press (<300ms) and long-press.
However, KeyWait method went wrong when I apply it on "CapsLock", say
Code: Select all
CapsLock::
KeyWait, CapsLock, T1
If ErrorLevel = 0
MsgBox, Short-press.
Else
MsgBox, Long-press.
return
I want to know if it is a bug or is there anything potential will cause this problem.
------------------------------------------------------------------------------------------------------------------------------
I found that if I use "~CapsLock" instead, it works as I expected, but my other compound hotkey "CapsLock & X" will triger it (as '~' suggests).