Skip to content

Instantly share code, notes, and snippets.

@LordOkami
Created December 20, 2022 13:40
Show Gist options
  • Save LordOkami/70865ff8caf4bb292a6f027972396749 to your computer and use it in GitHub Desktop.
Save LordOkami/70865ff8caf4bb292a6f027972396749 to your computer and use it in GitHub Desktop.
Change same app window in windows
!º::
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
}
@LordOkami
Copy link
Author

Script de autohotkey para cambiar entre diferentes ventanas de la misma app, el shortcut es: alt+º, pero se puede cambiar en la primera línea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment