OCR input (window)

更新时间:
复制 MD 格式

1. Component introduction

Note

Prerequisite component: Get Window

Use this component to interact with a program window on Windows. It uses Optical Character Recognition (OCR) to enter text into a specified text box within that window.

2. Inputs

Note

For help with each input, see the component panel in the visual editor.

3. Outputs

Note

For help with each output, see the component panel in the visual editor.

4. Component usage example

4.1. Configuration example

  1. For Window Object, select `v_win_obj_1`, which is the output of the prerequisite Get Window component.

  2. Use the Catch Control feature to capture a control that is an input box with gray placeholder text. Name the control "DingTalk search box".OCR方式输入_3

  3. For Input Box Control, select "DingTalk search box".

  4. For OCR Engine, select "Paddle".

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

  6. For Keyword to Detect, enter "Search".

  7. For Keyword Index, select "1".

  8. In the advanced options, set Simulate Input to "Yes".

  9. In the advanced options, for Input Interval Between Characters (ms), enter "80".

4.2. Example result

The component successfully enters text into the DingTalk search box automatically.

5. Flow creation example

Setup flow

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

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

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

Result

As shown in the following figure, the flow successfully enters the specified text into the DingTalk search box.