Skip to main content

Desktop objects

12 commands. Toolkit id ooa.desktop_ui.

CommandWhat it does
Desktop object actionFind a captured control in a Windows application and act on it: click, set or read text, read properties, select, expand, toggle, check, list items, read a grid, wait for it or get its position.
Desktop object existsTrue when the captured control can be found now in a Windows application (self-healing applies), and, when asked, is enabled or has the keyboard focus.
Find desktop objectsReturn every control that matches the object's used properties (the index is ignored), with their recorded properties.
Find legacy (MSAA) objectsList 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.
Get desktop tableRead a grid, table or detailed list view in a Windows application into a Data Table.
Get object propertiesFind a captured control and return all its current UI Automation properties and states.
Get parent objectFind a captured control and return the control that contains it, one or more levels up or the nearest of a given type (for example the panel or table row around a label), as an object the other Desktop objects actions accept.
Get text at a pointRead the text of whatever control is at a point on the screen, e.g. a scrolling text area or a label (G4).
Legacy (MSAA) object actionAct 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.
Pick desktop objectDesign time: point at a control in any Windows application and press Ctrl+Shift+C. A red frame shows the control under the pointer. Returns the captured object, ready for the other Desktop objects actions.
Record desktop actionsDesign time: records clicks and typing in a Windows application until Stop recording is pressed on the recording bar. With a window, that window comes to the front and only clicks and typing in its application (with its dialogs) are recorded; without one, everything on the desktop is. Each click or field becomes a Desktop object action step with the full captured object; password fields are never read.
Wait for desktop objectWait until a captured control appears, or until it disappears, in a Windows application.