Skip to main content

Move and resize window

Set a window's position and/or size in pixels; values left empty keep the window's current ones.

Command in the Window toolkit · id ooa.window/move_resize · 8 inputs, no outputs

Inputs​

InputTypeRequiredDefaultWhat it is
TitleStringNoText 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.
XNumberNoLeft; unchanged when empty.
YNumberNoTop; unchanged when empty.
WidthNumberNoWidth; unchanged when empty.
HeightNumberNoHeight; unchanged when empty.
AlternativesDictionaryNoFallbacks 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)NumberNo0Wait up to this many seconds for the window to appear; 0 looks once.
Process IDNumberNoProcess id from Start program: use that program's main window instead of finding it by title; title, when given, then only narrows the choice.