I'd like to get the last key that was pressed by the user. I'm not talking about a hotkey; just a normal keypress.
If possible, I'd also like to have keys that AHK typed using SendInput
be included. So if AHK just did SendInput
for some keys, and I'm asking for the last key that was pressed, then I'd be given the last key that AHK emitted or the last key that the user typed, depending on who typed last.
I tried A_PriorKey
, but it's problematic because when I tried it, it showed one of the keys that triggered the script, rather than the keys that came before the hotkeys, which is what I want.
Is what I want possible?
Have you tried a loop with Input, LastKey, L1 V ?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With