(Not Recommended) Input via OCR (Window)

更新时间:
复制 MD 格式
Warning
  1. For client versions 4.11.0.1068 and later, we recommend using the Fill in Input Box (CV) component.

  2. This component still works as expected and does not affect existing automation processes.

1. Overview

Note

Prerequisite component: Get Window

This component uses optical character recognition (OCR) to enter text into a text box in a Windows application window.

2. Inputs

Note

Refer to the help text for each input parameter in the component panel of the visual editor.

3. Outputs

Note

Refer to the help text for each output parameter in the component panel of the visual editor.

4. Usage example

4.1. Configuration example

  1. In the window object, select the output item v_win_obj_1 of the preceding Get Window component.

  2. Use the Capture Control feature to capture an input box control that contains placeholder text. Name the control "DingTalk Search Box".OCR方式输入_3

  3. In the input box control, select "Enter DingTalk search box".

  4. In the OCR engine, select "Paddle".

  5. In Input Content, enter "Welcome to Alibaba Cloud RPA"

  6. In target keyword, enter "search".

  7. In the keyword index, select '1'.

  8. In Advanced options, for Simulate input, select Yes.

  9. In Advanced options, for character input interval (milliseconds), enter 80.

4.2. Execution result

The component automates text entry into the DingTalk search box.

5. Example workflow

Build workflow

  1. Use the Get Window component to obtain the DingTalk window object.

  2. Use the Activate Window component to bring the DingTalk window to the foreground.

  3. Use the (Not Recommended) Input via OCR (Window) component to enter text into the DingTalk search box.OCR方式输入_2

Execution result

As shown below, the workflow enters the specified text into the DingTalk search box.OCR方式输入(窗口)_1