This file contains hidden or 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
| ; ahk V2 | |
| ; Source: https://gist.github.com/CFelipezapata/f7563d364197936a6673d28ad53b01dc | |
| ; Alt + ` : Cycle between windows of the same app (like macOS) | |
| !`::{ | |
| activeProcess := WinGetProcessName("A") | |
| winList := WinGetList("ahk_exe " activeProcess) | |
| if winList.Length > 1 { | |
| ; Activate the last window in the stack (most recently used *other* one) |