Press Mouse

The Press Mouse step, together with the Move Mouse step, is designed to perform drag-and-drop operations. For other mouse click operations, see the Click step.

Properties

Application
Application finder for the Press Mouse 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.