1. Component introduction
Prerequisite component: Get window
Use this component to retrieve text from a specific element in a window of a Windows application.
2. Inputs
For more information about each input, see the help text in the component panel of the ROS Visual Editor.
3. Outputs
For more information about each output, see the help text in the component panel of the ROS Visual Editor.
4. Component usage examples
4.1. Example configuration
For
Window object, select v_win_obj_1, which is the output of the prerequisite Get window component.Use the Capture control feature to capture a text element in the window. Name the captured control 'Control 1'.
For
Target control, select 'Control 1'.
4.2. Example result
The text from the window element is successfully retrieved and saved to the default variable v_win_element_text_1.
5. Example flow
Setup flow
Create and open a Word document named 'New Microsoft Word Document'.
Use the Get window component to obtain the 'New Microsoft Word Document' window.
Use the Capture control feature to capture the 'Insert reference folder' element in the Word document, as shown in the following figure.

Use the Get text from window component and select the captured control.
Use the Record log component. Set the log type to Info. For the log content, use the output variable from the
Get text from windowcomponent.
Result
As shown in the following figure, the flow successfully captures the text from the window element and records it in the log panel of the Robotic Process Automation (RPA) editor.