I am looking a way to make modifier key hold down until next keypress and be released on it.
Let's say in game I have 8 buttons from 1-8 and I would like to use them as Ctrl+1-8 ; Shift+1-8 and Alt+1-8 but I would need to activate them without holding modifier keys physicals down.
I would like to press Ctrl and them press 1 and it will make Ctrl+1, but in same time it should release Ctrl key.
Best I have found at the moment is this script:
Code: Select all
$Ctrl::
Send, {Ctrl down}
KeyWait, Ctrl
Sleep, 500
Send, {Ctrl up}
return
$Alt::
Send, {Alt down}
KeyWait, Alt
Sleep, 500
Send, {Alt up}
return
$Shift::
Send, {Shift down}
KeyWait, Shift
Sleep, 500
Send, {Shift up}
return
It is not the same I want, but at least I can make it work for now. Thank You