ButtonClick

Generates a single or double click with the specified mouse button.

Syntax

ButtonClick [button[, count]]

Argument Description
button A value indicating which button is to be clicked. To click multiple mouse buttons simultaneously, add the values for each button to be clicked.
  1 (default) left button (button 1)
  2 right button (button 2)
  4 third (middle) button
count A value indicating the number of clicks.
  1 (default) single click
  2 double click

Example

This example generates a double-click with the left mouse button.

ButtonClick 1,2

Note

Use a series of ButtonClick commands to generate triple- or quadruple-clicks.