Easy way to switch between two windows of the same app in Windows 10
I am looking for a way to switch between two open windows of the same app with a key shortcut, I have found this but it is not open source and I don't trust it even works. Does anyone has an alternative ? This is OOTB in Unity and Mac OS it is absurd that Windows doesn't have it.
Some time ago a Microsoft employee made this tool : not sure what is the official website, it is GREAT but works only on Windows 7 and doesnt work on 10, also not open source.
The closest thing I have found that is open source is this one but is less then ideal.
is there an alternative ?
52 Answers
There are three ways for doing this:
- You can hold Ctrl + Click on the icon of the app in the taskbar
- Use Win + position of app on taskbar. For example, if Google Chrome is on third position, do Win+3 to switch between windows of Chrome. Note that this cycles through the different windows, so for opening 4th window you'll have to press 3 four times.
- The fastest of all, Using Win + ctrl + n does exactly what you want. (where n is position of the app on taskbar)
Note that in 2nd and 3rd options if n is specified such that no window of that program is already open, windows will open a new window. This effect can also be acheived by pressing Win + shift + n, regardless of if windows of that app were already open or not.
2You may implement the Alt+` shortcut yourself using the freeAutoHotkey.
The following script will cycle through all the windows of the active process:
!`::
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
}After installing AutoHotKey, put the above text in a .ahk file and
double-click it to test. You may stop the script by right-click on
the green H icon in the traybar and choosing Exit. To have it run on login,
place it in the Startup group atC:\Users\USER-NAME\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup.
Useful AutoHotkey documentation:
4