Jump to content
Macro Express Forums

Closing Windows


Recommended Posts

This is still our macro we are trying to run continuously:


We want to make sure any open windows are closed before launching the first macro in our series. We're not sure how to do this because it could include several possibilities of windows that would be open. And we are not sure what the titles of the windows would be.


Anyway, is there just a shut down any window that is open? - Thanks - Renee

Link to comment
Share on other sites

Try using the Repeat with Windows: Place title in %T1% command. You can choose to have it return all windows, hidden windows, and visible windows. Something like this may work:

Repeat with Windows: Place title in %T1%
 Window Close: "%T1%"
Repeat End


You may find that some programs will not allow you to simply close their windows. For those windows you may need to use the Program Shut Down command. You may want to minimize specific windows instead of closing them. Try the Window Minimize: "%T1%" command.


You may also want to have a list of specific windows to leave alone.

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...