MsgBoxConfirm

Displays a standard Windows message box with the specified attributes.

Syntax

MsgBoxConfirm "msg", type, "title"

Argument Description
msg The text to be displayed in the message box. Up to 1024 characters can be displayed. Text wraps automatically.
type A value indicating which buttons and which symbol appear in the message box, and which button is the default. The value is the sum of selected values from the following three groups:
  16 critical symbol (stop sign)
  32 warning query symbol (question mark). The Microsoft Windows Interface Guidelines for Software Design discourages using this icon.
  48 warning symbol (exclamation mark)
  64 information symbol (lowercase i)
  +  
  0 OK button
  1 OK and Cancel buttons
  4 Yes and No buttons
  5 Retry and Cancel buttons
  +  
  0 first button is the default
  256 second button is the default
title The text to be displayed in the message box title bar.

Example

This instruction displays a message box with a warning symbol and Yes and No buttons. The first button, "Yes", is the default. (48 + 4 + 0 = 52)

MsgBoxConfirm "Do you want to save changes?", 52, "Warning"

Notes

  • The script automatically terminates if the user selects the Cancel or No button in the message box.
  • Dragon editions through 3.01 do not support using the second button as a default.