Set recording mode for message boxes
rillsoft_session_dialogs_setTurn on visible dialog recording for this session so message boxes appear on screen, auto-close via timer, and get logged with title, buttons and answer for screenshots.
Instructions
Switches the recording mode of this session: with visible true, every following call that would show a message box in the user interface - a warning, a hint, the question about moving fixed dates - shows the real box on screen for screenshots, and a timer closes it after autoCloseSeconds with the answer chosen by autoAnswer. A person who clicks earlier wins. The call that showed a box returns only once the box is closed, so run it in the background and take the picture meanwhile; every other tools/call sent while a box stands is refused with dialog_open and the remaining seconds. Each box shown is reported in _meta.dialogs[] of the answer with title, text, buttons, answer and shownMs. After a server start the mode is off. No undo step, no change to the project. It answers with the state now in force.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | next (the default) holds for the next mutating call of this session only and is used up by it, whether it showed a box or not; session holds until visible is set to false or the session ends. Ignored when visible is false | next |
| visible | Yes | true switches the recording mode on, false switches it off. While it is on, every call of this session that would show a message box in the user interface shows that same box on screen, and a timer closes it | |
| autoAnswer | No | escape (the default) presses what the Escape key would press - Cancel where there is one, else No, else OK - which is exactly the answer a call gives without the mode, so error code, text and project stay the same. enter presses the default button of the box; on the question about moving fixed dates that is Yes, so the command is carried out and the fixed elements move along - the result then differs from a call without the mode. Ignored when visible is false | escape |
| autoCloseSeconds | No | seconds a box stays on screen before the timer answers it, 1 to 60 (defaults to 10); ignored when visible is false |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | next = the next mutating call uses the mode up, session = it holds until switched off; missing while the mode is off | |
| visible | Yes | true = the recording mode is on for this session | |
| autoAnswer | No | what the timer presses: escape = Cancel, else No, else OK; enter = the default button; missing while the mode is off | |
| autoCloseSeconds | No | seconds a box stays on screen before the timer answers; missing while the mode is off |