Click control (window)

Updated at:

1. Introduction

Note

Prerequisite component: Get window

This component clicks a specified element in a window of a program running on Windows.

2. Inputs

Note

You can find the help information for each input in the component panel of the ROS Visual Editor.

3. Outputs

Note

You can find the help information for each output in the component panel of the ROS Visual Editor.

4. Component usage example

4.1. Component configuration

  1. For Window object, select v_win_obj_1. This is the output of the prerequisite Get window component.

  2. Use the Capture control feature to capture an element in the window. Name the element "Control 1".

  3. For Target control, select "Control 1".

  4. For Reference Position, the value is "Relative to the control's centroid".

  5. For Horizontal movement direction, select "To the right".

  6. For Distance to move right (pixels), the default is "0".

  7. For Vertical movement direction, select "Down".

  8. For Distance to move down (pixels), the default is "0".

  9. For Click type, select "Left-click".

  10. For Simulate click, select "No".

4.2. Example Execution Results

The component clicks the center of the specified element in the window.