0

I often have multiple instances of an application(e.g terminal windows) minimized on Windows 11.

What's the best way to open all of them at the same time(via either shortcut or minimum clicks)? Ctrl+clicking the application icon on taskbar seems to be the only currently.

I heard that Shift + Right-click on the taskbar icon and selecting "Restore all windows" used to work but that doesn't seem to do anything useful on Windows 11.

Update1: To add some info, I want to replicate the behavior that we see on macOS i.e, when you click an icon on dock, all its instance windows show up on screen. E.g, if there's 7 iTerm windows minimized, clicking on the iTerm icon on the dock, all of them show up.

7
  • Once you open all your instances, there is always one more to open. So I do not think Windows knows and most likely, natively, you cannot do this.
    – John
    Dec 4, 2022 at 17:30
  • Maybe you could use a virtual desktop?
    – zomega
    Dec 4, 2022 at 17:33
  • Are you looking for unminimizing all instances of a process? (Add to your comment @harrymc for me to be notified.)
    – harrymc
    Dec 4, 2022 at 19:24
  • @harrymc Sure. That works out.
    – Anutrix
    Dec 6, 2022 at 21:48
  • @zomega Multiple desktops switching are not what I am looking for. I need my work on same view.
    – Anutrix
    Dec 6, 2022 at 21:58

1 Answer 1

0

Install AutoHotkey. It is very well documented.

Solution. Create a new AutoHotkey file with .ahk extension and add code:

GroupAdd, cmd, ahk_exe cmd.exe
Loop, 10
{
    GroupActivate, cmd
}
  1. GroupAdd creates a program group based on window title, class or process name. All 3 can be included. The processes don't have to be the same to be added to the group.
  2. 1st GroupAdd argument -> cmd, is the name of the group, it can be whatever you want it, like ex. Terminals or CommandWindows.
  3. 2nd GroupAdd argument ahk_exe cmd.exe targets specific process, it can also be used like this: "WindowTitle ahk_class ConsoleWindowClass ahk_exe cmd.exe"
  4. The Loop with parameter 10 loops through all 10 windows.
  5. GroupActivate using the loop activates (restores) the group, all 10 minimized windows.
  6. Sometimes the loop doesn't activate (restores) all windows, so just add a higher number, like 20.

If you need to activate windows with specified titles, then you can do this:
WinActivate, Title1 ahk_exe cmd.exe
WinActivate, Title2 ahk_exe cmd.exe
WinActivate, Title3 ahk_exe cmd.exe

etc.

Just change Title# to your needs.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .