Util.WaitForMilliseconds() Method

Sleeps the program for a given interval in milliseconds.

Syntax

Util.WaitForMilliseconds(Milliseconds)

The method syntax has these parts:

Part Description
Milliseconds (Long) length of time to pause (milliseconds)
Return (Nothing) Does not return a value.

Remarks

Use this whenever you need to delay execution for a specific interval of time. Will raise an error if the script is aborted during the wait interval.

Loops, first putting the calling Win32 process to sleep, totally freezing it for 100 milliseconds, then pumps events so the script or program calling it will receive its normal flow of events.