Wait Process Window to be Activate

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
alanbr00
Posts: 3
Joined: 14 Sep 2019 11:20

Wait Process Window to be Activate

#1 Post by alanbr00 » 15 Sep 2019 00:28

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.

aGerman
Expert
Posts: 4654
Joined: 22 Jan 2010 18:01
Location: Germany

Re: Wait Process Window to be Activate

#2 Post by aGerman » 15 Sep 2019 05:13

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

Steffen

ShadowThief
Expert
Posts: 1160
Joined: 06 Sep 2013 21:28
Location: Virginia, United States

Re: Wait Process Window to be Activate

#3 Post by ShadowThief » 16 Sep 2019 10:22

I think they mean they want to wait for the window to be active

aGerman
Expert
Posts: 4654
Joined: 22 Jan 2010 18:01
Location: Germany

Re: Wait Process Window to be Activate

#4 Post by aGerman » 16 Sep 2019 16:47

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

ShadowThief
Expert
Posts: 1160
Joined: 06 Sep 2013 21:28
Location: Virginia, United States

Re: Wait Process Window to be Activate

#5 Post by ShadowThief » 16 Sep 2019 21:10

I take it to mean "has keyboard focus"

Post Reply