mouse | R Documentation |
Reposition the mouse and simulate mouse clicks.
mousemove(x, y, clearmodifiers = FALSE, sync = FALSE) mousemovePolar(theta, distance, clearmodifiers = FALSE, sync = FALSE) mousemoveRel(x, y, clearmodifiers = FALSE, sync = FALSE) mousemoveRelPolar(theta, distance, clearmodifiers = FALSE, sync = FALSE) click(button, rep=1, delay=NULL, clearmodifiers=FALSE) mousedown(button, clearmodifiers=FALSE) mouseup(button, clearmodifiers=FALSE)
x |
The |
y |
The |
theta |
The angle for the mouse move (0 is up and positive angles are
clockwise), relative to the centre of the screen (or, for the
|
distance |
The distance for the mouse move, relative to the centre of the
screen (or, for the |
button |
The mouse button to simulate (typically, 1 is left, 2 is middle, 3 is right, 4 is wheel up, 5 is wheel down). |
rep |
The number of times to click. |
delay |
The delay between clicks (in milliseconds), if |
clearmodifiers |
Logical whether to clear input modifiers (such as the shift key). |
sync |
Whether to wait for the mouse to begin moving (will not necessarily wait for the mouse to reach its destination). |
Paul Murrell
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.