From 06e029c28ce661625a56e80d8148a6af2fa0a071 Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Mon, 29 Apr 2024 21:21:08 +0100 Subject: [PATCH] Add mapping for {cmd}+` equivelent https://superuser.com/a/1721255 --- macOS.ahk | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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