I'm looking for a way to show/hide a window with a specific title. One example is when you press win+1, the first window at task bar will show, when you press again, it will be minimized.
I checked this page, but the methods they suggested are not working at my end.
You check whether a specific window has been minimized with WinGet. (Credit to Laszlo)
You can then show or hide said window with WinMinimize and WinRestore.
The hotkey below checks a window's state, then minimizes or unminimizes the window.
See Also