Type Into (Window)
1. Component overview
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
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
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
In
window, select v_win_obj_1, an output item from the preceding component Get Window.Use the Capture Control feature to capture a text box in the window and name it
Control 1.In the
target control, select "Control 1".For
input type, select "Text".In the
input contentfield, enter "Welcome to Alibaba Cloud RPA".NoteTo insert a line break when typing into a rich text box, switch to
Edit Expression Mode. In this mode, use\nto create a line break in the content.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
Create and open a text document named "New Text Document - Window Example".
Use the Get Window component to get the "New Text Document - Window Example" window.
Use the Type Into (Window) component to type "Welcome to Alibaba Cloud RPA" into the text box.

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