Clean up key release order of Alt+Tab
Posted: 17 Apr 2024, 10:32
When switching tasks with Alt+Tab in windows. How can I make sure tab is released before alt?
My issue is that I often release both Alt and Tab virtually at the same time and I might end up with a Tab-release sendt to the target window. This results in the focus shifting away from where I left it.
I have tried both supressing Alt-up and taking over Alt-Tab altogether, but I can't find a way to clean up the order of key releases. The best I've been able to do is make it beep at me every time I release Alt before Tab.
(currently using both v1.1 and v2)
My issue is that I often release both Alt and Tab virtually at the same time and I might end up with a Tab-release sendt to the target window. This results in the focus shifting away from where I left it.
I have tried both supressing Alt-up and taking over Alt-Tab altogether, but I can't find a way to clean up the order of key releases. The best I've been able to do is make it beep at me every time I release Alt before Tab.
Code: Select all
~*LAlt Up::
{
if(GetKeyState("Tab", "P")){
; SendPlay("{Tab Up}")
SoundBeep(1760, 100) ; A6
}
}