answer_dialog
Answers native 1C modal dialogs by sending the window-level default action (OK/Yes), not a button click, and confirms commit via a result marker.
Instructions
Answer a 1C modal dialog (ПоказатьВопрос / ПоказатьПредупреждение) natively. Unlike a popup choice list
(which reuses the form window), a real dialog opens a NEW top-level window — a fresh SecondaryFrame GUID per
open. The genuine answer is a WINDOW-LEVEL command on that dialog frame (…SecondaryFrame[<dlg>] 88 82 81 = the
window's default action = ОК/Да), NOT a Button activate. This faithfully replays the genuine dialog session
from capture (open form -> click raise_command -> the dialog opens -> the window-level answer);
GUID rebinder learns the LIVE dialog GUID from the live open response and rebinds the captured one in the close
command (the same first-appearance rebinding as the form window). Commit is confirmed by result_marker (the
fixture's answer field, e.g. PF_V4_WARNING_ACK) appearing in the post-answer read-back. Returns {raise_command,
result_marker, dialog_sf, committed}. NOTE: the WARNING (ОК) path is the default — the QUESTION (Да/Нет) answer
is the same window-level mechanism with the appropriate raise_command/marker once captured.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | 127.0.0.1 | |
| port | No | ||
| capture | No | genuine-card96-dialog-warn-20260618/traffic | |
| raise_command | No | PF_V4_WARNING | |
| result_marker | No | PF_V4_WARNING_ACK |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||