Skip to main content

Move Window

AutomatR.Windows.Activities.MoveWindow

The "Move Window" activity in AutomatR is designed for Windows UI Automation. It allows you to modify the position and dimensions of a specified window, providing control over the layout of applications in automation workflows.

Properties

NameDescription
Input
Process NameEnter the process name of the window app that needs to be moved.
Process TitleEnter the process title of the window app that needs to be moved.
Display TitleEnter the title of the window app that needs to be moved.
X ValueThe new X coordinate value of the window. Integer variables containing the X coordinate value.
Y ValueThe new Y coordinate value of the window. Integer variables containing the Y coordinate value.
WidthEnter the new width of the window. Integer variables containing the width value.
HeightEnter the new height of the window. Integer variables containing the height value.
WindowEnter the window variable for the app that needs to be moved.
Misc
Display NameProvides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name.
Optional
DelayEnter the wait time in seconds (Example: 5 seconds i.e., 5) to start the activity. Integer variables containing the delay duration.

How to use:

  1. Drag and drop the "Move Window" activity onto the workflow.
  2. Configure the properties by specifying the process name, process title, display title, or window variable, along with the new position and dimensions (X, Y, Width, Height) of the window.
  3. Optionally, configure the delay.
  4. Execute the workflow to modify the specified window's position and dimensions.

Example: Consider an example where the "Move Window" activity is used to move a window with the process name "SampleApp" to a new position (X=100, Y=100) and set new dimensions (Width=500, Height=300):

Move Window:
Process Name: "SampleApp"
X Value: 100
Y Value: 100
Width: 500
Height: 300

In this example, the activity modifies the position and dimensions of the window associated with the process name "SampleApp." The specified X, Y, Width, and Height values determine the new layout of the window.