Skip to main content

Mouse Click

Description

Clicks on a specified UI element in the screen

note

This activity might require an active display and an unlocked user session to successfully simulate interactions with UI components. For more detailed information, please refer to the relevant section in the Desktop Automation Notes.

Properties

Input

  • Automation Mode – Defines the method used to automate UI elements through hardware drivers or the Send Windows Messages API. The default option is Drivers.

    ModeDescription
    DriversLeverages hardware drivers to simulate interactions directly with UI components. Requires an active display and unlocked user session.
    Window MessagesUtilizes the Send Windows Messages API for automation, eliminating the need for an active display or unlocked session.
    Note: This mode is compatible only with certain types of applications that support window message-based automation and may not work with others, such as WPF applications.
  • Click Type—Specifies the mouse clicks to be stimulated. Select the type from the pre-defined set listed in the dropdown. By default, Left-Click is selected.

  • Delay After – Delay time, in milliseconds, after executing the activity. By default, it is set to 300 milliseconds.

  • Delay Before – Delay time, in milliseconds, before the activity begins execution. By default, it is set to 200 milliseconds.

  • Window Instance - Holds the window instance identified through Window Selector. You can also type in the window instance for automation.

  • Search Parameters – Holds the information of the UI element identified through Element Selector.

  • X Adjustment – Horizontal (X) adjustment relative to the element position

  • Y Adjustment – Vertical (Y) adjustment relative to the element position

Misc

  • DisplayName – The display name of the activity.

  • Private – If selected, the variables and argument values will no longer be logged at the Verbose level.

Optional

  • Continue On Error – It Specifies whether the automation should continue even when the activity throws an error. If True, the activity continues without throwing any exceptions. If False, the activity throws an exception. The default value is False.
note

If this activity is inside the Try-Catch block, and the value of this property is True, no error would be caught.

Example

Download Example

Mouse Click