offset position.md
Offset Position
The Offset position building block offsets (translates) one screen position into another. It is typically used to calculate a new position for mouse actions. See the Drive mouse actions lesson for an example of how to use the Offset position block.
The Offset position block shows the following properties:
Note: The screenshot on this page uses the Elegance Design, introduced in 2025.3. If you are using an earlier version, your layout may look different.
Quick-start
- Drag Offset position onto the canvas.
- Connect it by providing Position to offset and Offset value, and use Result position as input in another building block. Optionally, adjust Offset method if needed.
- Run the flow when it's ready.
Building block parameters
Parameters
Block header: This block has no green input or output connectors because it is not explicitly executed. It performs a calculation on position values and provides the result to other building blocks. You can rename the block title ("Offset position") by double-clicking it and typing a new title.
Position to offset: The base position to offset, in X, Y coordinates (top-left of the screen is 0, 0). You can expand it to work with X and Y separately.
Offset value: The position offset to apply to the base position, in X, Y coordinates (top-left of the screen is 0, 0). You can expand it to work with X and Y separately.
Offset method: The calculation method used to apply the offset: Add or Multiply. For example, adding 10, 20 to a position 500, 500 results in 510, 520.
Result position: The resulting position after the offset operation, in X, Y coordinates (top-left of the screen is 0, 0).
Resources
| Topic | Description |
|---|---|
| Flows FAQ | Common questions about creating, running, and managing flows in Leapwork. |
| Flows Troubleshooting | Guidelines and solutions for identifying and fixing issues that occur when building or running flows in Leapwork. |