use AutoHotkey: https://superuser.com/a/1721255
Last active
May 18, 2023 02:55
-
-
Save codethereforam/b8556c6e091ea298f6ad87475168a4ed to your computer and use it in GitHub Desktop.
Switch Between Windows Of The Same Program@www.autohotkey.com
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!`:: | |
WinGetClass, OldClass, A | |
WinGet, ActiveProcessName, ProcessName, A | |
WinGet, WinClassCount, Count, ahk_exe %ActiveProcessName% | |
IF WinClassCount = 1 | |
Return | |
loop, 2 { | |
WinSet, Bottom,, A | |
WinActivate, ahk_exe %ActiveProcessName% | |
WinGetClass, NewClass, A | |
if (OldClass <> "CabinetWClass" or NewClass = "CabinetWClass") | |
break | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment