Yield

Provides time for other windows to do processing.

Syntax:

Yield

Parameters:

(none)

Returns:

(not applicable)

 

Use this command to give other running windows time to process. This command will allow each open window to process 20 or more messages.

The Yield waits a very short time. The TimeDelay function gives other running windows time to process messages, like the Yield does. TimeDelay might be better to use for longer time delays.

Example:

; run Excel and give it some time to start up
sheet = AskLine ("Excel", "File to run:", "", 0)
Run("excel.exe", sheet)
Yield
Yield
Yield
See Also:

TimeDelay, TimeWait, Exclusive, WinWaitChild, WinWaitExist