This hotkey
Code: Select all
~RButton & w:: LongPressCommand("w", ^l, ^f)
Code: Select all
LongPressCommand(pressKey, quickCmd, longCmd) {
KeyWait, %pressKey%, T0.3
If ErrorLevel {
Send %longCmd%
} else {
Send %quickCmd%
}
Keywait, %pressKey%,
}
What I have tried so far:
- BlockInput: works, but blocks all input and thus other keys pressed could get stuck.
- Hotkey command: works, but can't differ between keys that already have a hotkey and those that don't, thereby destroying existing hotkeys for that key.