Message Box
Message Box
Section titled “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?”).
How it works
Section titled “How it works”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.
Required parameters
Section titled “Required parameters”| Parameter | Editor | Description |
|---|---|---|
message | expression | The message to display. |
Optional parameters
Section titled “Optional parameters”| Parameter | Editor | Description |
|---|---|---|
title | text | Window title. By default "Zoan Automation". |
buttons | list | Botones: OK (def.) · OKCancel · YesNo · YesNoCancel · RetryCancel · AbortRetryIgnore. |
icon | list | Icono: None · Information (def.) · Question · Warning · Error. |
Output
Section titled “Output”Returns a string with the button pressed.
Example
Section titled “Example”Ask for confirmation before an action:
Message Box message = = "¿Procesar " + total + " registros?" buttons = YesNo icon = Question → output: respuestaIf condition = = respuesta == "Yes" └─ then: ... procesar ...Related activities
Section titled “Related activities”- Input Dialog — request a text.
- Log — log information without dialogue (suitable for unattended).