|
Script Object |
|
See Also: |
The Script.StopWait() method interrupts a Script.Wait() call.
VBScript:
JScript:
| Script | The Script object. |
As noted in the Script.Wait() topic, Script.Wait() and Script.StopWait() are normally used to pause and resume script execution while handling events for out-of-process COM objects.
If script execution is inside a Script.Wait() call, Script.StopWait() tells APGen to exit the Script.Wait() as soon as possible. If the script is not waiting, calling Script.StopWait() effectively cancels out the next Script.Wait(). When the next Script.Wait() is executed, it will return immediately. This effect is not cumulative - calling Script.StopWait() more than once will not cancel out more than one Script.Wait() call.
See Script.Wait() for an example that uses Script.StopWait().