Commit 802c42a
Extract important XAML properties into tree dump
TAP DLL: capture key properties from GetPropertyValuesChain during
bounds collection. Properties extracted:
- Text content: Text, Content, Header, PlaceholderText, Description,
Title, Glyph (filtered: skip numeric handle references >10 digits)
- Accessibility: AutomationProperties.Name, AutomationProperties.AutomationId,
AutomationProperties.HelpText
- State: IsEnabled, Visibility, IsChecked, IsSelected, IsOn, Orientation
- Other: Source, Tag
Properties are serialized as a JSON object in the TAP pipe output and
copied into Element.properties by graft_json_node. Text/Content/Header
values also populate Element.text for display.
The Win32 provider already populates properties (hwnd, style, visible,
enabled). XAML elements now get similar treatment, enabling AI consumers
to identify controls by their accessible names (e.g. 'Bold (Ctrl+B)').
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 3d39a10 commit 802c42a
2 files changed
Lines changed: 62 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
175 | 189 | | |
176 | 190 | | |
177 | 191 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
330 | 330 | | |
331 | 331 | | |
332 | 332 | | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
333 | 371 | | |
334 | 372 | | |
335 | 373 | | |
| |||
490 | 528 | | |
491 | 529 | | |
492 | 530 | | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
493 | 541 | | |
494 | 542 | | |
495 | 543 | | |
| |||
0 commit comments