Click

The Click step is one of the most commonly used actions (unless you are automating a terminal) in Desktop Automation. With a Click (and Move Mouse) step, your robot can start and close programs, work with programs interfaces, perform drag-and-drop operations, select text, and perform many other actions that a user can perform with a pointing device.

Additionally, it is possible to simulate hardware keyboard and mouse on an automated computer. For more information, see "Install the Desktop Automation Service" in the Kofax RPA Installation Guide.

Properties

Application
Application finder for the Click step.
Action
Contains three mouse actions. Each action is initiated at the current cursor position. To ensure that this is the expected location or to change the location, use the Move Mouse step.
  • Click: Clicks in the application interface.
  • Press: Presses the mouse button without releasing it.
  • Release: Releases the mouse button.
Button
Select Standard Buttons or Calculated Button of the pointing device.
  • Standard Buttons: Left, Middle, Right.
  • Calculated Button: Select this option to determine a mouse button click when the robot is running. In the expression field, specify a virtual-key code or a space-separated list of input specifications. The result of the expression should be a value between 0 and 2 representing one of the mouse buttons. This functionality is only supported on the Windows operating system. For the list of virtual-key codes, see the Microsoft documentation.

Example

Use "0" for the left mouse button, "1" for the right mouse button, and "2" for the middle mouse button.

Modifier
Select a key modifier:
  • Fixed Key Modifier: Contains three standard key modifiers, such as Shift, Ctrl, Alt.
  • Calculated Key Modifier: With this option selected, specify a symbolic constant name of the virtual-key code for a modifier.

    In the text box that appears, you can enter the key codes for Shift, Ctrl, and Alt only. For example, the VK_LSHIFT key code stands for the left Shift key, VK_RCONTROL stands for the right Ctrl key, and VK_MENU stands for the Alt key. For a complete list of key codes, see the Microsoft documentation.

Count
Specify how many times to perform the action. For example, for the double-click, specify 2.