I also wrote my AHK functions to have hotkeys to cycle through (or toggle) windows from an application! Here:
https://github.com/diogotito/autohotkey-scripts/blob/desktop...and here's where I declare most of my hotkeys:
https://github.com/diogotito/autohotkey-scripts/blob/desktop...
It uses AHK's window groups.
I only regret having written this in AHK v1, which was a bit of a pain in the neck.
I intend rewrite them in AHK v2, which looks like a halfway step to ES6 with lambdas, closures and all. So many quirks gone! I tried it a bit and it felt more fun and productive.
As a simpler alternative (which I use for work), one can pin the 10 most used applications on the taskbar and do:
- Win+<N> to launch, toggle, or choose a window from the Nth application
- Ctrl+Win+<N> to launch, toggle or cycle through the windows from the Nth application
- Shift+Win+<N> to launch a new window
- Alt+Win+<N> to bring up the Jump List
Then you can use a simpler hotkey manager (like PowerToys' Keyboard Manager) to bind to the Ctrl+Win+<N> shortcuts.
> Plus a tweak: When launching, programs may open in the background because Windows attempts to prevent applications stealing focus when you are working in another program. I overcome this by focusing the tray before launching.
Aaah! That explains some things. That does happen to me sometimes and it's a bit annoying. I got used to pressing my hotkey again when I noticed the taskbar icon blinking green to bring up the new window, or just spamming WinActivate and hope for the best. Thanks!