Skip to main content

Window

19 commands. Toolkit id ooa.window.

CommandWhat it does
Activate windowBring a window to the front (restoring it if minimised).
Capture windowSave a PNG screenshot of one window.
Close all matching windowsAsk every visible window whose title matches to close (like clicking each X); programs may still ask to save.
Close windowAsk a window to close (like clicking its X; the program may ask to save).
Get active window titleReturn the title of the window in front.
Get window detailsFind a window and return its title, program, class, position, size and state, e.g. to keep it in a variable for later steps.
Hide windowHide a window completely: unlike Minimise it also leaves the taskbar. The program keeps running, and Show window brings it back.
List windowsList the titles of all visible windows.
Maximise windowMaximise a window.
Minimise windowMinimise a window.
Move and resize windowSet a window's position and/or size in pixels; values left empty keep the window's current ones.
Pick a point on screenDesign 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 windowRestore a minimised or maximised window to its normal size.
Set window titleChange the title bar text of a window, e.g. to tell several copies of the same program apart.
Show windowShow a window that was hidden (by Hide window or by its program), optionally bringing it to the front.
Type in backgroundType 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 windowWait until a window whose title matches (or the main window of a process) opens, or until it has closed.
Window existsTrue when a visible window title matches (text in it, * or ? pattern, or re:).
Window is activeTrue when the window in front has a matching title (text in it, * or ? pattern, or re:).