I don't know if I'm using the command correctly.
Code: Select all
Appskey & Up::
Send, {LWin down}{Alt down}{up down}
KeyWait, up
GetKeyState, state, Appskey, p
If (state = "U")
Send, {LWin up}{Alt up}
return
Can anybody help me understand why LWin and Alt remain pressed even after sending {LWin up}{Alt up}?
P.S. A bit of context just in case anybody proposes a solution that differs significantly from my example code above: I need this hotkey to work globally, and I also use my Appskey as a modifier key in addition to using its normal context-menu function (all of which is currently working perfectly, even with the above code). Therefore I'm trying to avoid any solution that will break any of the pre-existing Appskey functionality that I already have.