mouse.click {KeyboardSimulator}R Documentation

Simulate Mouse Clicks

Description

Simulate left and right button of mouse clicks.

Usage

mouse.click(button = "left", hold = FALSE)

Arguments

button

character. Allowed values are "left" and "right".

hold

logical. Whether the button should be held down.

See Also

mouse.release

Examples

## Not run: 

# left mouse click
mouse.click(button = "left")

# left mouse click and hold
mouse.click(button = "left", hold = TRUE)

## End(Not run)

[Package KeyboardSimulator version 2.1.0 Index]