Engine.PostUIMessage
- Updated2024-10-09
- 1 minute(s) read
Engine.PostUIMessage
Syntax
Engine.PostUIMessage( executionParam, threadParam, eventCode, numericDataParam, stringDataParam, activeXDataParam, synchronous)
Purpose
Posts a user interface message to the current sequence editor or user interface.
Remarks
You can post the following messages from a step: UIMsg_ProgressPercent and UIMsg_ProgressText . These messages tell the user interface to display a progress indicator or text message for the execution.
Parameters
executionParam As Execution
[In] Specifies the execution to pass with the message.
threadParam As Thread
[In] Specifies the thread to pass with the message.
eventCode As UIMessageCodes
[In] Specifies the type of UIMessage.
numericDataParam As Double
[In] Specifies numeric data to pass with the message. When you post a UIMsg_ProgressPercent event, this parameter specifies the percent done.
stringDataParam As String
[In] Specifies string data to pass with the message. When you post a UIMsg_ProgressText event, this parameter specifies the text to display.
activeXDataParam As IUnknown
[In] Specifies an ActiveX reference to pass with the message.
synchronous As Boolean
[In] Typically, you pass True for this parameter to direct the method to wait until the user interface processes the message. If you pass False , the method returns immediately without waiting for the user interface to handle the message. If you pass False and post messages faster than the user interface processes messages, the number of messages in the queue the user interface must handle grows unbounded and floods the user interface with messages, which causes the user interface to become unresponsive.