Skip to content

Message Box

Type: message-box  ·  Package: UI Activities v1.0.0  ·  Output: string

Displays a Windows dialog box with a message and buttons, and returns the button that the user clicked. It is used to inform (a notice) or ask for confirmation (“Do you want to continue?”).

Displays message with the set of buttons and icon indicated, and waits. Returns the name of the pressed button (OK, Yes, No, Cancel…), which you can evaluate with a If.

ParameterEditorDescription
messageexpressionThe message to display.
ParameterEditorDescription
titletextWindow title. By default "Zoan Automation".
buttonslistBotones: OK (def.) · OKCancel · YesNo · YesNoCancel · RetryCancel · AbortRetryIgnore.
iconlistIcono: None · Information (def.) · Question · Warning · Error.

Returns a string with the button pressed.

Ask for confirmation before an action:

Message Box message = = "¿Procesar " + total + " registros?" buttons = YesNo icon = Question → output: respuesta
If condition = = respuesta == "Yes"
└─ then:
... procesar ...
  • Input Dialog — request a text.
  • Log — log information without dialogue (suitable for unattended).