Skip to main content

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​

InputTypeRequiredDefaultWhat it is
Window titleStringNoTitle of the application window: text it contains, or a pattern with * and ?.
NameStringNoName of the control (contains, or * and ?).
RoleStringNoMSAA role, e.g. push button, editable text, list item, check box (contains, or * and ?).
IndexNumberNo0Which match to use when several do, 0 for the first.
PathStringNoThe object's path from Find legacy objects, instead of name and role.
ActionStringNodefault_actiondefault_action presses, checks or opens it as the application defines; set_value types the value into it.
ValueStringNoThe value to set.
ProcessStringNoProgram of the window, e.g. myerp.exe (optional, narrows the search).
Timeout (seconds)NumberNo10How long to wait for the window and the control, in seconds.

Outputs​

OutputTypeWhat it is
resultAnyThe value read (get_value), the properties (get_properties), or true.
objectDictionaryThe object acted on: path, name, role, value and the rest.