APGen Documentation Previous Topic: Script.Wait() Next Topic: ScriptArguments Object Parent Topic: Script Object    Script Object
Script.StopWait()
See Also:

The Script.StopWait() method interrupts a Script.Wait() call.

Syntax

VBScript:

Script.StopWait

JScript:

Script.StopWait();

Object

Script The Script object.

Notes

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

Applies To

Script Object