MsgBox
 Top Next

Once you have entered the values needed, you can:

·    Preview the message/input box.

·    Copy the messagebox code to the clipboard or Standard Output (if the command-line parameter /StdOut is provided) for later use.
The Title button tries to copy the Script title from the open Text Editor and to paste it to the Title textbox.


graphic

Example:
If the message box includes only the OK button, then the generated code will be like this:
#Region --- CodeWizard generated code Start ---
;MsgBox features: Title=Yes, Text=Yes, Buttons=OK, Icon=Info
MsgBox(64,"Title","Text")
#EndRegion --- CodeWizard generated code End ---
Otherwise it will be like this:
#Region --- CodeWizard generated code Start ---
;MsgBox features: Title=Yes, Text=Yes, Buttons=Yes, No, and Cancel, Icon=Info
Dim $iMsgBoxAnswer
$iMsgBoxAnswer
= MsgBox(67,"Title","Text")
Select
Case
$iMsgBoxAnswer = 6 ;Yes

Case $iMsgBoxAnswer = 7 ;No

Case $iMsgBoxAnswer = 2 ;Cancel

EndSelect
#EndRegion --- CodeWizard generated code End ---