Jump to content
Macro Express Forums

Shut down a running(hidden) program


Recommended Posts

I want a program to shutdown and have ME check every few seconds to see if some other program shuts down first. To further elaborate, one program closes ONLY IF another one closes first.


There is one catch: the second/dependent program IS HIDDEN.


<DIS:<WAITWIN2:000010:000000:ACT! by Sage - Personal><DIS:<IFOTH:14:1:ACTSAGE.EXE><IFOTH:12:2:ACT! by Sage - Personal><WSHUT:Microsoft Excel - ACT! 2009 Excel oledb><WCLS:Microsoft Excel - ACT! 2009 Excel oledb><DIS:<TERMPROC:001000:0:T:Microsoft Excel - ACT! 2009 Excel oledb><ENDIF><DIS:<TERMPROC:001000:1:F:EXCEL.EXE>


The second program dependent on the primary program to close is hidden. Both "program shutdown" and "Window Close" completely "miss" seeing the hidden program. "terminate Process" works, but the darn things keeps on giving me an error over and over after it closes the program the first time.


I don't get it. Why doesn't "program shutdown" or "Window Close" not work? What is the workaround on this? This may sound weird, but why is this program so powerful, but sometimes a headscratcher?



Link to comment
Share on other sites

Hello all!


I had to take a different approach. Here is the solution:(You can substitute your own program for mine)


<IFOTH:14:1:ACTSAGE.EXE><AND><IFOTH:12:2:Microsoft Excel - ACT! 2009 Excel oledb><MSTOP><DIS:<BREAK><ENDIF><IFOTH:14:1:ACTSAGE.EXE><TERMPROC:001000:0:T:Microsoft Excel - ACT! 2009 Excel oledb><ENDIF>





Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...