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.
Command in the Window toolkit · id ooa.window/get_info · 4 inputs, 7 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Title | String | No | Text in the window title, a pattern with * or ? (e.g. Invoice*- Excel), or re: and a regular expression; case-insensitive. The first visible window that matches is used. May be empty when process_id is given. | |
| Alternatives | Dictionary | No | Fallbacks when no title matches: title_pattern (wildcards or re:), class_name, process_name, and index (with class_name). The one that works is logged. | |
| Timeout (seconds) | Number | No | 0 | Wait up to this many seconds for the window to appear; 0 looks once. |
| Process ID | Number | No | Process id from Start program: use that program's main window instead of finding it by title; title, when given, then only narrows the choice. |
Outputs
| Output | Type | What it is |
|---|---|---|
| window | Dictionary | title, process_name, class_name, x, y, width, height, state (normal, minimized or maximized), active, process_id. |
| width | Number | Width in pixels. |
| height | Number | Height in pixels. |
| x | Number | Left edge in pixels. |
| y | Number | Top edge in pixels. |
| state | String | normal, minimized or maximized. |
| process_id | Number | Id of the program that owns the window, for Stop program. |