Learn R Programming

KeyboardSimulator (version 2.6.2)

mouse.click: Simulate Mouse Clicks

Description

Simulate left, right, and middle mouse clicks.

Usage

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

Arguments

button

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

hold

logical. Whether the button should be held down.

See Also

mouse.release

Examples

Run this code
if (FALSE) {

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

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

Run the code above in your browser using DataLab