Same-App Window Cycler (Alt+`)
macOS-style Cmd+` for Windows: cycle through the windows of the current app with Alt+` (Alt+Shift+` goes backwards)
Author: mdozkanji
Brings the macOS Cmd+` behavior to Windows. While an app has several
windows open, press Alt+` to jump to its next window, or Alt+Shift+`
to go to the previous one. Repeated presses walk through all of the app's
windows, and Alt+Shift+` walks through them in the opposite order.
The shortcut uses the physical key left of 1. The key is mapped when the mod
starts, so it follows the keyboard layout that is active at that time.
How it differs from the existing switcher mods
Simple Window Switcher, ClassicWindowSwitcher and Windows 7/8.1 Alt+Tab
Recreation also offer an Alt+` "windows of the current app" mode, but all of
them replace the native Alt+Tab and show their own switcher UI. This mod leaves
Alt+Tab untouched and switches windows directly, with no UI. If you already use
one of those mods for Alt+`, you don't need this one.
Conflicts
Alt+` is registered as a global hotkey, and only one program can own it.
- Simple Window Switcher registers Alt+` by default (
altBacktickBehavior: backward), so if both mods are enabled, whichever registers first gets the
key and the other one only logs a failure. Set its Alt+` behavior to "none",
or don't enable both.
- Windows 7/8.1 Alt+Tab Recreation catches Alt+` with a low-level keyboard hook
and swallows it. With its
onlyThisAppHotkey option on, that mod gets the key
no matter which one registers first, and this mod's hotkey never fires.
- The same applies to other tools that use Alt+`, such as AutoHotkey scripts.
- Apps that have their own Alt+` or Alt+Shift+` shortcut stop receiving it
while this mod is on.
How it works
The mod runs as a tool mod in a dedicated windhawk.exe process and registers a
global hotkey. When pressed, it takes the foreground window, finds all other
switchable top-level windows that belong to the same executable on the current
virtual desktop, and activates the next one.
Limitations
- Windows are grouped by executable path. UWP apps hosted by
ApplicationFrameHost.exe are all treated as one "app".
- Windows of elevated (administrator) apps may only flash instead of coming to
the front.
- "Always on top" windows (such as Picture-in-Picture) are skipped while
cycling, unless one of them is the current window.
- If you switch keyboard layouts and the key left of
1 produces a different
virtual key, the hotkey stays on the key it was registered with. Disable and
re-enable the mod after changing layouts.