Desktop objects
12 commands. Toolkit id ooa.desktop_ui.
| Command | What it does |
|---|---|
| Desktop object action | Find 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 exists | True 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 objects | Return every control that matches the object's used properties (the index is ignored), with their recorded properties. |
| 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. |
| Get desktop table | Read a grid, table or detailed list view in a Windows application into a Data Table. |
| Get object properties | Find a captured control and return all its current UI Automation properties and states. |
| Get parent object | Find 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 point | Read 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 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. |
| Pick desktop object | Design 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 actions | Design 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 object | Wait until a captured control appears, or until it disappears, in a Windows application. |