Is there a way to unpress all pressed keys with AHK?
By pressed, I mean Send {something down}
and by unpress I mean Send {something UP}
You're in the right direction. All you would need to do is to create a list of keys to check, then add an if statement (if needed at all) to unpress the keys if pressed.
KeyList := "Shift|a|b|c|d|e|f|g|h|i|j" ; and so on
Loop, Parse, KeyList, |
{
If GetKeystate(A_Loopfield, "P")
Send % "{" A_Loopfield " Up}"
}
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