Macro Scheduler 15

WaitProcessTerminated

WaitProcessTerminated>processname

 

Waits for the specified process name to not exist.

 

The system variable WFP_TIMEOUT can be used to set the number of seconds after which this command should timeout.  If set to zero (the default) the timeout will not occur and the command will continue indefinitely.  If WFP_TIMEOUT is used, WFP_RESULT will indicate whether or not the command ended successfully.  If it timed out WFP_RESULT will be set to FALSE.  If the process it was waiting for terminated within the timeout setting, the WFP_RESULT value will be set to TRUE.

 

See also: ProcessExists, WaitProcessExists

Abbreviation: WPT

 

Example

 

WaitWindowClosed>notepad*

WaitProcessTerminated>notepad.exe

MessageModal>Notepad has left the building!