Skip to main content

Find legacy (MSAA) objects

List the controls of an older application through MSAA (IAccessible), for programs UI Automation does not describe well: name, role, value, default action, state and position, each with its path.

Command in the Desktop objects toolkit · id ooa.desktop_ui/find_legacy_objects · 6 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 ?); empty for any.
RoleStringNoMSAA role, e.g. push button, editable text, list item, check box (contains, or * and ?).
ValueStringNoValue of the control (contains, or * and ?); empty for any.
ProcessStringNoProgram of the window, e.g. myerp.exe (optional, narrows the search).
Largest valueNumberNo500At most this many objects.

Outputs​

OutputTypeWhat it is
objectsListMatching objects: path, name, role, value, description, default_action, state, unavailable, checked, invisible, focusable, bounds.
countNumberNumber of matching objects.