Page 1 of 1

Wait Process Window to be Activate

Posted: 15 Sep 2019 00:28
by alanbr00
Hi all,

I'm using a powershell script:

Start-process c:\test\window.exe

I'm trying to make it wait "window.exe" be activate to continue the script.

Re: Wait Process Window to be Activate

Posted: 15 Sep 2019 05:13
by aGerman
I'm trying to make it wait "window.exe" be activate to continue the script.
What does "activate" mean?

Steffen

Re: Wait Process Window to be Activate

Posted: 16 Sep 2019 10:22
by ShadowThief
I think they mean they want to wait for the window to be active

Re: Wait Process Window to be Activate

Posted: 16 Sep 2019 16:47
by aGerman
Still "active" is an ambiguous term. Does it mean that the Window is visible, or does it mean the process has finished loading and has zero CPU usage, or does it mean the window is the topmost window, or does it mean the window has the keyboard focus, ...? We don't even know what this window.exe is in order to be able to investigate what "active" could possibly mean.

Steffen

Re: Wait Process Window to be Activate

Posted: 16 Sep 2019 21:10
by ShadowThief
I take it to mean "has keyboard focus"