Change point coordinates Version 5 (Net)
Action group: "Base actions", subgroup "General"
Description
The action returns the coordinates of the new point obtained by the shift relative to some specified point
Action icon
Settings of parameters
Property | Description | Type | Filling example | Mandatory field |
---|---|---|---|---|
Parameters | ||||
Coordinates of point | Coordinates of point | (300, 98) | Yes | |
X-axis shift | Shift along the x-axis | Numeric | 90 | No |
Y-axis shift | Shift along the y-axis | Numeric | -54 | No |
Results | ||||
Coordinates | Variable in which the coordinates of the new point will be written | Location Point |
Special conditions of use
If no value is entered in the "Change X" or "Change Y" field,
then the coordinate value of the corresponding axis is saved in the result unchanged
Example of use
Task
You have the coordinates of a point on the Send / Receive tab of Outlook.
You need to switch to the "Folder" tab using device simulation.
Solution
Use the "Change point coordinates" and "Mouse click" actions.
Implementation
- Create a variable with the coordinates of the point.
- Move the "Change point coordinates" action to the workspace.
- Set the parameters for the "Change point coordinates" action.
- In the "Coordinates of point" field, add the variable "Coordinates of the "Send / Receive" tab"
- In "X-axis shift" set the value to 120
- Do not change the "Y-axis shift" parameter
- Move the "Mouse click" action to the workspace.
- Set the parameters of the "Mouse click" action.
- Set the left mouse click in the "Click option" field
- In the "Coordinates" field, add the result of the "Change point coordinates" action
- Click on the "Start" button in the top panel.
Result
The program robot comleted successfully.
The robot switched to the "Folder" tab using the "Mouse click" action on the changed coordinates of the point.