Window
19 commands. Toolkit id ooa.window.
| Command | What it does |
|---|---|
| Activate window | Bring a window to the front (restoring it if minimised). |
| Capture window | Save a PNG screenshot of one window. |
| Close all matching windows | Ask every visible window whose title matches to close (like clicking each X); programs may still ask to save. |
| Close window | Ask a window to close (like clicking its X; the program may ask to save). |
| Get active window title | Return the title of the window in front. |
| Get window details | Find a window and return its title, program, class, position, size and state, e.g. to keep it in a variable for later steps. |
| Hide window | Hide a window completely: unlike Minimise it also leaves the taskbar. The program keeps running, and Show window brings it back. |
| List windows | List the titles of all visible windows. |
| Maximise window | Maximise a window. |
| Minimise window | Minimise a window. |
| Move and resize window | Set a window's position and/or size in pixels; values left empty keep the window's current ones. |
| Pick a point on screen | Design time: point at a place in any window and press Ctrl+Shift+C. Gives the point on the screen and measured from the window's top-left corner, with the window's title and size, for mouse steps. |
| Restore window | Restore a minimised or maximised window to its normal size. |
| Set window title | Change the title bar text of a window, e.g. to tell several copies of the same program apart. |
| Show window | Show a window that was hidden (by Hide window or by its program), optionally bringing it to the front. |
| Type in background | Type text and keys such as {ENTER} or {TAB} into a window without bringing it to the front or using the keyboard, so it works while the window is behind others or minimised and the person keeps working. |
| Wait for window | Wait until a window whose title matches (or the main window of a process) opens, or until it has closed. |
| Window exists | True when a visible window title matches (text in it, * or ? pattern, or re:). |
| Window is active | True when the window in front has a matching title (text in it, * or ? pattern, or re:). |