Message box package guide
Display a message and data in a desktop window while the Run waits for it to close.
Version 2.14.3. Installed versions can differ. Examples are illustrative and not tested.
Prerequisites
- The Device must have a Windows desktop that is signed in and unlocked. The step fails without one.
- The Run waits until a person closes the window or the time runs out. There are no answer buttons, and the action returns no answer.
- Do not put passwords in the title or message. Credential passwords are hidden, also in a Dictionary shaped like a Credential. Other String values show as they are.
Actions
Message box (messageBox)
Show a message and a value. The Run waits until the window closes.
Inputs
| ID | Editor field | Type/default | Requirement/use |
|---|---|---|---|
title | Enter the message box window title | String; default empty | Optional. Window title and heading, e.g. Sample complete. |
content | Enter the message to display | String; default empty | Optional. Message text. Line breaks stay. If empty, only the value shows. |
variable | Variable to display | Variable; default empty | Optional. A value to show, e.g. $rows$. A Table shows as a read-only grid with its column names, also when empty. A Table inside another value shows as text. A List shows one item per line. A Dictionary or Record shows name : value lines. Values inside values are indented. Passwords are hidden. |
scroll | Scrollbar after lines | Number; default 10 | Optional. Lines or rows to show before a scrollbar appears, 1 to 99. Other values change to the nearest limit. A long line that wraps counts as more than one line. |
close | Close message box after | Boolean; default false | Optional. true closes the window after time. false waits for a person to close it. |
time | Seconds | Number; default 0 | Optional. Seconds before the window closes, e.g. 5 or 2.5. Used only when close. 0 or less keeps it open. |
Outputs
None.
Example
Set title=Sample complete, content=The sample file is ready., scrollLines=3, closeMsgBox=true, timeOut=5. Leave variable empty. To show a Table, get rows with Excel Get multiple cells first, then set variable=$rows$.
Expected result
The window shows the title and message. It closes after about 5 seconds, or earlier if a person closes it. Then the Run continues.
This package has no conditions.