Skip to main content

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

ParameterRequiredTypeDefaultDescription
sTextTruestring""The prompt message content displayed in the dialog box
sTitleTruestring"Laiye RPA"Dialog title
iStyleTrueenum0The style of buttons in the dialog
sCommandTrueenum1Icon displayed in the dialog box
iTimeoutTruenumber0Timeout (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
*/