Move mouse using OCR (web page)

更新时间:
复制 MD 格式

1. Introduction

Note

Prerequisite components: Open new web page or Get opened web page

Use this component to move the mouse to a specified position in Chrome, Edge, or IE browsers using Optical Character Recognition (OCR).

2. Inputs

Note

For more information about each input, see the help information in the component panel of the application flow editor.

Prerequisite validation steps for the OCR method

a. In the capture control, click the View OCR result button.

b. From the OCR engine drop-down list, select a suitable engine. The engine that you select affects the accuracy of character recognition.

Note
  • Google engine: An offline, lightweight OCR engine with good English recognition capabilities.

  • Alibaba Cloud engine: A server-based, comprehensive OCR engine that requires authorization. It provides high accuracy in various scenarios.

  • Paddle engine: An offline, lightweight OCR engine with good Chinese recognition capabilities.

c. Enter the recognition result in the Keyword to recognize input box.

3. Outputs

Note

For more information about each output, see the help information in the component panel of the application flow editor.

4. Component usage example

4.1. Component configuration example

  1. In the Move mouse using OCR (web page) component, select v_web_obj_1. This is the output of the Open new web page or Get opened web page component.

  2. For Target control, select the captured control.

  3. For OCR engine, select Google.

  4. For Keyword, enter New.

  5. For Shift right distance (pixels), enter 200.

  6. For Shift down distance (pixels), enter 200.

  7. Keep the default values for the other options.

4.2. Example execution result

The component moves the mouse 200 pixels to the right and 200 pixels down from the keyword "New".

5. Example flow

Build the flow

  1. Use the Open new web page component to open the international Alibaba Cloud website in Chrome.

  2. Use the Move mouse using OCR (web page) component to move the mouse to the target position.

Execution result

The flow opens the international Alibaba Cloud website in Chrome and moves the mouse to a specified position relative to the keyword.