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:

image-20260207-111735.png

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

  1. Drag Offset position onto the canvas.

  2. 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.

  3. 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.