I tried:
Code: Select all
RCtrl::
OutputDebug "here1"
KeyWait, RCtrl, T0.5 ; Wait no more than 0.5 sec
If ErrorLevel { ; timeout, long press
OutputDebug "here2"
} else { ; short press
OutputDebug "here3"
}
return
short press works fine, and also short and long press work fine if I replace RCtrl with LCtrl or RAlt for example
what am I doing wrong ?
(tested with DebugView)