Execution.WaitForEnd
- Updated2026-08-31
- 1 minute(s) read
Execution.WaitForEnd
Syntax
Execution.WaitForEnd( millisecondTimeOut, processWindowsMsgs = True, [callingExecution])
Return Value
Returns True when the execution ends or False when the timeout occurs.
Purpose
Remarks
Waits for an execution to end. This method is not meant to be used by a user interface or sequence editor as it does not process UIMessages. Instead, use this method from a step to synchronize with another execution.
Parameters
millisecondTimeOut As Long
[In] Specifies the maximum number of milliseconds to wait. Specify -1 for no timeout.
processWindowsMsgs As Boolean
[In] Specify True to process Microsoft Windows messages while waiting or False to wait without processing Windows messages.
This parameter has a default value of True .
callingExecution As Variant
[In] [ Optional ] If you call this method from a step, pass a reference to the execution of the step to allow this method to return immediately when the step execution is terminated or aborted.