ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How to Determine if Application Window Still Active (https://www.excelbanter.com/excel-discussion-misc-queries/147998-how-determine-if-application-window-still-active.html)

Edwin Kelly

How to Determine if Application Window Still Active
 
I am launching a CMD window with the Shell command and running a command that
I am building in code. I want to be able to determine if the window is still
active before proceeding. Is there a way to do that?
--
Edwin Kelly
Houston, TX

Mike H

How to Determine if Application Window Still Active
 
Shell and wait may do what you require.

http://www.cpearson.com/excel/ShellAndWait.htm

Mike

"Edwin Kelly" wrote:

I am launching a CMD window with the Shell command and running a command that
I am building in code. I want to be able to determine if the window is still
active before proceeding. Is there a way to do that?
--
Edwin Kelly
Houston, TX


Edwin Kelly

How to Determine if Application Window Still Active
 
I've implemented a Pause of 10 seconds but many times the window only runs
for a split second and other times it runs much longer. I need to be able to
determine exactly when the window closes to prevent too many windows being
created.
I can capture the number assigned to the window being created but I do not
know how to use that with other Windows commands to test if it is still
open/active.
--
Edwin Kelly
Houston, TX


"Mike H" wrote:

Shell and wait may do what you require.

http://www.cpearson.com/excel/ShellAndWait.htm

Mike

"Edwin Kelly" wrote:

I am launching a CMD window with the Shell command and running a command that
I am building in code. I want to be able to determine if the window is still
active before proceeding. Is there a way to do that?
--
Edwin Kelly
Houston, TX


Edwin Kelly

How to Determine if Application Window Still Active
 
Sorry I did not notice the link in your posting. Will take a look and try it
out. Thanks !
--
Edwin Kelly
Houston, TX


"Mike H" wrote:

Shell and wait may do what you require.

http://www.cpearson.com/excel/ShellAndWait.htm

Mike

"Edwin Kelly" wrote:

I am launching a CMD window with the Shell command and running a command that
I am building in code. I want to be able to determine if the window is still
active before proceeding. Is there a way to do that?
--
Edwin Kelly
Houston, TX



All times are GMT +1. The time now is 08:42 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com