When holding NumPad1, I need to hold down the spacebar. When pressing NumPad1, I need to press the x key. All this should work even if other keys are held/pressed.
I tried to implement it, however there are bugs.
Code: Select all
*NumPad1::
KeyWait, NumPad1, T0.3
if (ErrorLevel) {
; If NumPad1 is held down
Send {Space down}
KeyWait, Space
Send {Space up}
} else {
; If NumPad1 is pressed
Send {x}
}
return
- In notepad, holding NumPad1 prints a space very slowly.
- In notepad, holding NumPad1 can print the letter x at the end of a series of spacebars.
- In notepad, holding NumPad1 and pressing any other key will stop printing the spacebar.