Hide future windows of a process

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
e-miel
Posts: 3
Joined: 06 Aug 2022, 21:22

Hide future windows of a process

Post by e-miel » 06 Aug 2022, 21:28

Hello,
Is it possible to hide all future windows of a process?

User avatar
mikeyww
Posts: 26883
Joined: 09 Sep 2014, 18:38

Re: Hide future windows of a process

Post by mikeyww » 07 Aug 2022, 06:43

Welcome to this AutoHotkey forum!

Code: Select all

Loop {
 WinWait, ahk_exe notepad.exe
 WinHide
 MsgBox, Hidden
}

e-miel
Posts: 3
Joined: 06 Aug 2022, 21:22

Re: Hide future windows of a process

Post by e-miel » 07 Aug 2022, 12:07

Thanks for your answer, but with your code, the new window is visible then it disappears.
Is there any way that the window is already hidden when it is created, or at worst, that it is created in the background and then hidden? The goal is to hide every white splash screen.

The process that creates the splash screens is already running, so there is no need to wait for process starts.

RussF
Posts: 1264
Joined: 05 Aug 2021, 06:36

Re: Hide future windows of a process

Post by RussF » 07 Aug 2022, 14:07

You could always create a shortcut for each app (or modify an existing one) to run the application minimized.
image.png
image.png (34.57 KiB) Viewed 415 times
Russ

e-miel
Posts: 3
Joined: 06 Aug 2022, 21:22

Re: Hide future windows of a process

Post by e-miel » 07 Aug 2022, 15:36

Thanks for your answer.
Your minimized shortcut trick works with PhotoFiltre but does not work with Firefox, GoogleEarth, GIMP, Inkscape.

Post Reply

Return to “Ask for Help (v1)”