get number.md

Get Number

The Get number building block retrieves a number from the screen, either from the entire screen or from a specified Area. You can apply formatting and filtering rules so only numbers matching your requirements are returned (for example, a number embedded in Price: [NUMBER] USD, or only numbers less than or equal to a threshold).

See the Use Numbers and Variables and Capture text on screen lessons for examples of how this works.

Fully expanded, the Get number 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

  1. Drag Get number onto the canvas.
  2. Connect the block in the flow and specify Area (or leave it empty to search the whole screen). Optionally configure Find format, separators, OCR settings (Engine, OCR Mode, OCR Precision), and Filter. Set Use occurred if you expect multiple matches, and configure timeout-related settings if needed.
  3. Run the flow when it's ready.

Building block parameters

Parameters

Note that this position is the middle of the retrieved number, not the upper-leftmost pixel of the text. Use the expander to work with X and Y separately.

If the built-in OCR engine does not meet requirements, ABBYY can be used. Contact Customer Success to get started with ABBYY.

Note: All cases have a global timeout configured in the Settings panel. This is unrelated to the timeout of a single building block. However, a running case will automatically be cancelled if it runs for longer than the global timeout.

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.