I want to have two hotkeys in my script. Namely LWin Up
and LWin+LAlt Up
. I've tried to do it like that:
LAlt & LWin Up:: ;I've also tried commenting out the first
LWin & LAlt Up:: ;or the second line
LWin Up::
msgbox, % A_ThisHotkey
return
But the output depends on the order in which keys were pressed and released. The time between releasing the first and the second key also affects the result. Sometimes I get two MessageBoxes, sometimes just one and sometimes even none at all (the first line is commented out, press alt, press win, release win, release alt). How do I make it work? To be clear: I want to get only one MessageBox.
In the answer it would be great to see a script that provides full information about the hotkey pressed and the order in which the keys it consist of were pressed and released. *Only one hotkey should be triggered after releasing a hotkey+key
combo.