Get Cursor Location



The Get Cursor Location block retrieves the current cursor position on a Green Screen session as row and column coordinates, so you can reuse that position in other Green Screen blocks.

Note: The Green Screen Recorder and Green Screen building blocks are available with Enterprise plans.

Fully expanded, the Get Cursor Location block shows the following properties:

image-20260127-155824.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 Get Cursor Location onto the canvas.

  2. Connect its input from the previous block and its output to the next block.

  3. Run the flow.

Building block parameters

Parameters
  • Block header: Shows the current title of the Get Cursor Location block. You can rename it by double-clicking the header and typing a new title. The green input connector triggers the block when the flow reaches it, and the green output connector triggers when the cursor location is fetched successfully.

  • Position: Returns the cursor location as a position value (row/column). You can expand it to work with the coordinates separately.

  • Not found: Triggers if the cursor location cannot be retrieved before the timeout.

  • Default timeout: If unchecked, the timeout is 10 seconds unless you change it manually. If checked, the block uses the Default timeout defined in the flow settings (under Max. run time).

  • Timeout: The maximum time spent trying to retrieve the cursor location before giving up and triggering Not found. This value is used when Default timeout is unchecked (default is 10 seconds unless changed manually).

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.