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
Name | Description |
---|---|
Input | |
Process Name | Enter the process name of the window app that needs to be moved. |
Process Title | Enter the process title of the window app that needs to be moved. |
Display Title | Enter the title of the window app that needs to be moved. |
X Value | The new X coordinate value of the window. Integer variables containing the X coordinate value. |
Y Value | The new Y coordinate value of the window. Integer variables containing the Y coordinate value. |
Width | Enter the new width of the window. Integer variables containing the width value. |
Height | Enter the new height of the window. Integer variables containing the height value. |
Window | Enter the window variable for the app that needs to be moved. |
Misc | |
Display Name | Provides 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 | |
Delay | Enter the wait time in seconds (Example: 5 seconds i.e., 5) to start the activity. Integer variables containing the delay duration. |
How to use:
- Drag and drop the "Move Window" activity onto the workflow.
- 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.
- Optionally, configure the delay.
- 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.