Skip to main content

Move window

Sophie avatar
Written by Sophie
Updated over 2 weeks ago

Definition and Usage

Set the position of a specified window. This command allows you to reposition windows on the screen by specifying X and Y coordinates.


Parameter Values

Input parameters

Parameter

Description

Possible Values

Required

Options / Notes

Get window by

Specify the window to move

Window object, Title or class, Window UI element

Yes

Determines how the window will be identified

Window

Select a window object that was obtained earlier

Yes (if "Window object" is selected)

Title

Enter title of the window

Yes (if "Title or class" is selected)

Specify window class

Specify window class

Optional

Class name

Enter class name of the window

Yes (if "Specify window class" is checked)

Use RegEx

Use regular expressions like ^abc (starts with abc), \d+ (any numbers), or .*.csv$ (ends with .csv) to match specific text formats

Optional

Element

Select or capture an element to operate on

Yes (if "Window UI element" is selected)

X-coordinate

Horizontal position from left edge of screen

Yes

Use {x} to insert variables

Y-coordinate

Vertical position from top edge of screen

Yes

Use {x} to insert variables

Error handling

Parameter Name

Description

Throw error & stop

When an error occurs, the action will trigger an error and stop the execution of the entire app.

Retry command

If an error occurs, the action will retry the command in an attempt to resolve the issue and continue the process.

Ignore error & continue

When an error occurs, the action will be ignored, and the workflow will continue without interruption.

Variables produced

This action doesn't produce any variables.


Using Variables in Conditions

You can use variables in the X and Y coordinate fields by inserting them with the {x} syntax. This allows you to dynamically position windows based on previously calculated or stored values. Variables must contain numeric values to be valid for coordinates.


Notes

  • The coordinates are measured in pixels from the top-left corner of the screen (0,0).

  • You can use the Ctrl+Alt shortcut to capture the current mouse position coordinates.

  • Ensure the window exists and is accessible before attempting to move it.

  • If the specified window cannot be found using the provided identification method, the command will result in an error.

  • Moving windows outside the visible screen area may make them inaccessible without keyboard shortcuts.

Did this answer your question?