Learn R Programming

KeyboardSimulator (version 2.5.0)

mouse.click: 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

Run this code
# NOT RUN {
# 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