Description

Gets the next Windows message currently in the message queue.

Syntax

DoEvents( wait )

Parameters

wait
Optional. A boolean expression indicating whether DoEvents should wait for an event to occur before returning control back to your script. If True the method will wait , otherwise it will return immediately. The default is true.

Return Value

A string representing the next event in the message queue.

Remarks

DoEvents is typically used along with the Execute function to form an application event loop, for example:

$Form.Show() While $Form.Visible $=Execute($System.Application.DoEvents) Loop

Note: This method differs from the legacy DoEvents method in that the meaning of wait/async parameter is reversed.

See Also

Applies To: Application


The CHM file was converted to HTML by chm2web software.