# Message Window

Show the User a modal dialog window with a specified title, text, and a set of buttons. If a window with multiple buttons is used, the block allows you to store in a variable a text constant corresponding to the button pressed by the User.

<table data-header-hidden><thead><tr><th width="188" valign="top"></th><th width="283.416748046875" valign="top"></th></tr></thead><tbody><tr><td valign="top">Title</td><td valign="top">[Text] The text, variable value, or calculation result that will be displayed in the dialog window's title.</td></tr><tr><td valign="top">Message</td><td valign="top">[Text] The text, variable value, or calculation result that will be displayed inside the dialog window.</td></tr><tr><td valign="top">Buttons</td><td valign="top">Buttons that will be available for the User to press.</td></tr><tr><td valign="top">Image</td><td valign="top">An image that will be displayed in the dialog window.</td></tr><tr><td valign="top">Timeout</td><td valign="top">[Number] The timeout duration. If a value greater than zero is specified, the window will automatically close after this time. The first value from the specified "Buttons" property will be recorded in the "Result" property.</td></tr><tr><td valign="top">Line Breaks</td><td valign="top">Enables line breaks in the message.</td></tr><tr><td valign="top">Result</td><td valign="top"><p>[Text] A variable that will store the name of the button pressed by the User. Possible results include:</p><ul><li>OK,</li><li>Cancel,</li><li>Yes,</li><li>No.</li></ul><p>These text constants are independent of the Robot's language or operating system.</p></td></tr><tr><td valign="top">Error Handling Level</td><td valign="top"><p>Select the error handling level. Possible values:</p><ul><li>"Default" - default;</li><li>"Ignore" - errors are ignored;</li><li>"Handle" - errors are handled.</li></ul><p>If "Default" is selected, the value from the "Start" block of this diagram will be used.</p></td></tr><tr><td valign="top">Message Level</td><td valign="top"><p>Select the message level that blocks will output during operation. Possible values:</p><ul><li>"Default" - default;</li><li>"Release" - output is disabled;</li><li>"Debug" - main information output;</li><li>"Detailed" - detailed information output.</li></ul><p>If "Default" is selected, the value from the "Start" block of this diagram will be used.</p></td></tr><tr><td valign="top">Error Text</td><td valign="top">[Text] Returns detailed information about the error in case of incorrect execution of the block's work.</td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sherparpa.ru/en/sherpa-rpa/sherpa-designer/spravochnik-blokov/dialogovye-okna-dialogs/okno-s-soobsheniem-messagebox.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
