app_read_window
Reads a window through UI Automation to list accessible elements and text, exposing WPF dialog controls that MSAA and child-window enumeration cannot see.
Instructions
Read a window through UI Automation, which sees what MSAA cannot.
THE LAYER THAT WAS MISSING. This project read Altium three ways: window text, which returns nothing for anything without a handle; MSAA, which handles the VCL dialogs well and the WPF ones not at all; and OCR on the pixels. UIA sits between the second and the third.
It matters most for the case that forced OCR into existence. Altium's newer WPF dialogs have buttons that are NOT child windows, so EnumChildWindows finds nothing and MSAA has nothing to press. WPF is UIA-native, so those same buttons are ordinary elements here, with names, and they can be pressed properly with app_invoke_element.
WHAT IT STILL WILL NOT SEE. Delphi's TLabel owns no handle and publishes no accessible object, so its text exists only as pixels. Use app_screenshot there; that is what OCR is for and why it stays.
Returns:
{"ok": true, "count": N, "elements": [{name, type, automation_id, enabled, rect}], "text": [...]}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| with_text | No | ||
| dialog_title | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||