diff --git a/macOS.ahk b/macOS.ahk index 707878d..8f64a85 100644 --- a/macOS.ahk +++ b/macOS.ahk @@ -18,6 +18,20 @@ GroupAdd, WebCatalog, Ferdium send #`` return +!`:: ; switch between windows of same app +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 +} + ; ---------------------------------- Editing --------------------------------- !x:: ; cut send ^x