Javier2013 Javier2013 - 7 months ago 55
R Question

Simulating a mouse click in R

Is there a way to simulate a left-click from the mouse using R?

I just want that after some line of code, wherever the mouse is, R will make a left click.

I am using Ubuntu - Unity.


If you have xdotool installed, you could do:

system("xdotool click 1")