Install and configure autoclick software on Linux

This is a memo-post for me, hope useful to someone else too.
The need is to have autoclick on your desktop to automate some recurring task.

To do this I installed xdotool

sudo apt-get install xdotool

Ater the installation place your mouse on the desktop and get mouse location:

  • x and y: screen coordinates;
  • screen: screnn number, useful if you have more than one monitor/screen;
  • window: application window ID.

gmellini@SandTigerShark:~$ xdotool getmouselocation
x:758 y:512 screen:0 window:54525959

Test it executing the standalone command.

gmellini@SandTigerShark:~$ xdotool mousemove 1242 998 click 1

And iterate (following commad sleeps 5 seconds between the commands).

gmellini@SandTigerShark:~$ while [ true ]; do xdotool mousemove 1242 998 click 1; sleep 5; done

Enjoy!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s