I try to send the pressed modifiers using the "Send" command, only as I came up with, lists them all:
; (Note: I've remapped using registry the Capslock as F13) F13 & h:: if GetKeyState("Control") && GetKeyState("Shift") { Send +^{Left} return } if GetKeyState("Control") { Send ^{Left} return } if GetKeyState("Shift") { Send +{Left} return } Send {Left} return
On Windows, if you press ctrl + left, it will move the word left; if I press Ctrl + shift + left, it selects the word left. Similarly, I would like to send existing modifiers, as in the above example, but is there an easier way? Pseudo-code: F13 & h::Send {CurrentlyPressedModifiers}{Left}
source share