Macro Scheduler 15

Wait for the window "Untitled – Notepad"


 

Macro Scheduler gives us two very useful commands: WaitWindowOpen and WaitWindowClosed.

 

As their names suggest these wait for the specified window to be fully open, or closed respectively before script execution continues.  The argument given to these commands can be the exact window title, or a portion of the window title followed by an asterisk.  The latter tells Macro Scheduler to search all windows until it finds a window whose title contains the specified text regardless of case and stop at the first one it finds.

 

In our case we know the title is always "Untitled - Notepad" after running Notepad, so we can write the next line of our script:

 

WaitWindowOpen>Untitled - Notepad