Skip to content

Click

The Click component enables users to simulate any click actions. Using this component, Users can simulate the click actions of a mouse. This component uses Inter Process Communication (IPC) to send the click events to an application.

Screenshot

Ports

The Click component exposes Control In and Control Out ports by default.

Port Description
Control In Must be connected to the Control Out port of one or more components.
Control Out Can be connected to the Control In port of any other component or connector, or the default end component.

Properties

To edit the properties of the Click component, access the Property Explorer in the lower-right pane, change the required property. You can edit the following properties-

Property Description
Search Search for the respective property.
Delay After Execution Specifies the wait time (in seconds) after the Click actions is performed.
Delay Before Execution Specifies the wait time (in seconds) before the Click actions is performed.
Name Specifies the name to identify the component the name to match the application field you are interacting with.
Click X Specifies the location of the Click action on the x-axis.
Click Y Specifies the location of the Click action on the y-axis.
Search as A Gray Scale Image Defines the selected area as a gray scale image.
Target Platform Allows users to select the aplication platform.
Threshold Specifies the image matching accuracy before performing the click operation. Value of 1 defines 100% match, 0.5 defines 50% match; Defaults value is 0.9 or 90% match.
Max Wait Time in Seconds Specifies the image matching accuracy before performing the click operation. Value of 1 defines 100% match, 0.5 defines 50% match; Defaults value is 0.9 or 90% match.
Max Wait Time in Seconds Defines the number of Seconds to wait for the image/application to appear on the screen. Default value is 30 Seconds.
Wait After Image Found Specifies the wait time (in seconds) after the image is found.
Wait For Create Define if the Click component must wait for the image to appear on the screen. Default value is True

Example

Let us take an example of using the Click component on a calculator.

Screenshot

To use the Click component:

  1. In the Toolbox, expand Actions.

  2. Drag the Click component and drop it on the Design surface.

  3. Double click on the Click component to add multiple images.

    Screenshot

  4. To select the region, click Screenshot.Then Press “CTRL+SHIFT” for selection message to be displayed.

  5. Press CTRL+SHIFT. The mouse pointer becomes a crosshair.

  6. If the First captured image is not displayed on the screen then it searches for next captured image. Click Screenshot sign to add next image.

  7. Select the area of the calculator.The selected region is displayed in the Click component.

  8. Connect:

    • The Control ports between Start and the Click component.

    • The Control Out port of the Click component with the Control In port of the next Click component.

  9. Click Run.