Type Into (Window)

Updated at:

1. Component overview

Note

Prerequisite component: Get Window

Use this component to type text into a specified text box in a window of a running Windows application.

2. Inputs

Note

For details about each input parameter, refer to the help information in the component panel of the visual editor.

To use a hotkey, select "hotkey" for the input type parameter. For detailed usage and examples, see Hotkey usage and virtual key code list.

3. Outputs

Note

For details about each output parameter, refer to the help information in the component panel of the visual editor.

4. Examples

4.1. Configuration example

  1. In window, select v_win_obj_1, an output item from the preceding component Get Window.

  2. Use the Capture Control feature to capture a text box in the window and name it Control 1.

  3. In the target control, select "Control 1".

  4. For input type, select "Text".

  5. In the input content field, enter "Welcome to Alibaba Cloud RPA".

    Note

    To insert a line break when typing into a rich text box, switch to Edit Expression Mode. In this mode, use \n to create a line break in the content.

  6. In the Input mode, select "Append input".

4.2. Execution result

The component types the specified text into the text box of the target window.

5. Workflow example

Build the workflow

  1. Create and open a text document named "New Text Document - Window Example".

  2. Use the Get Window component to get the "New Text Document - Window Example" window.

  3. Use the Type Into (Window) component to type "Welcome to Alibaba Cloud RPA" into the text box.image

Execution result

The workflow types "Welcome to Alibaba Cloud RPA" into the text document, as shown in the figure below.Dingtalk_20220808165412