Legacy (MSAA) object action
Act on a control of an older application through MSAA: its default action (press a button, check a box), set or get its value, select it, or read its properties. Find it by name and role, or by path.
Command in the Desktop objects toolkit · id ooa.desktop_ui/legacy_object_action · 9 inputs, 2 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Window title | String | No | Title of the application window: text it contains, or a pattern with * and ?. | |
| Name | String | No | Name of the control (contains, or * and ?). | |
| Role | String | No | MSAA role, e.g. push button, editable text, list item, check box (contains, or * and ?). | |
| Index | Number | No | 0 | Which match to use when several do, 0 for the first. |
| Path | String | No | The object's path from Find legacy objects, instead of name and role. | |
| Action | String | No | default_action | default_action presses, checks or opens it as the application defines; set_value types the value into it. |
| Value | String | No | The value to set. | |
| Process | String | No | Program of the window, e.g. myerp.exe (optional, narrows the search). | |
| Timeout (seconds) | Number | No | 10 | How long to wait for the window and the control, in seconds. |
Outputs
| Output | Type | What it is |
|---|---|---|
| result | Any | The value read (get_value), the properties (get_properties), or true. |
| object | Dictionary | The object acted on: path, name, role, value and the rest. |