Message-Box
Command Description
Pop up a prompt message dialog, and return the button clicked by the user
Command Prototype
iRet = Dialog.MsgBox(sText,sTitle,iStyle,sCommand,iTimeout)
Parameter Description
Parameter | Required | Type | Default | Description |
---|---|---|---|---|
sText | True | string | "" | The prompt message content displayed in the dialog box |
sTitle | True | string | "Laiye RPA" | Dialog title |
iStyle | True | enum | 0 | The style of buttons in the dialog |
sCommand | True | enum | 1 | Icon displayed in the dialog box |
iTimeout | True | number | 0 | Timeout (milliseconds); 0 means no timeout |
return
iRet,The variable used to save the output of the command.
Demo
Dim iRet
iRet = Dialog.MsgBox("This is a system message box","UiBot",5,1,0)
TracePrint(iRet)
/**
The output result is the subscript number of the button clicked by the user
For example:
iRet 2
*/