Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I want to click on something for hours. How can I make a script or use an application so the mouse will auto-click every 5 seconds or less?

share|improve this question

3 Answers

up vote 7 down vote accepted

I went to this page and downloaded the xautoclick_0.20-1~ppa1_amd64.deb (14.3 KiB) and it works great :D

enter image description here

Thanks to Kat Amsterdam for finding xautoclick

share|improve this answer
5  
It is dangerous to just download a single file and install it. In order to receive security updates for the package and new features it is reccomended to install the ppa::: apt-add-repository ppa:c-korn/ppa – Kat Amsterdam Aug 23 '12 at 20:45

In Lucid 10.04LTS

Step 1. Open Ubuntu Software Center
Step 2. in the search box type in autoclick
Step 3. download xautoclick

For Precies 12.04LTS the package has been removed from the Ubuntu Repositories and is only available via GetDeb.

xautoclick instructions for install in precies

or via Christoph Korn's PPA (who is a member of GetDeb):

apt-add-repository ppa:c-korn/ppa

Step 3. download xautoclick via the software center
(or if you are handy with the terminal)

sudo apt-get update && sudo apt-get upgrade && sudo apt-get install xautoclick

Step 4. Read the instructions on xautoclick man xautoclick
Step 5. Under Programs, Accesories choose xautoclick
Step 6. Change the Interval to 5000 (the value is milliseconds)
Step 7. Click Start
Step 8. Move the mouse over what you would like to click
Step 7. Enjoy!
xautoclick

To enable the GetDeb repositories:

wget -q -O - http://archive.getdeb.net/getdeb-archive.key | sudo apt-key add - sudo sh -c 'echo "deb http://archive.getdeb.net/ubuntu precise-getdeb apps" >> /etc/apt/sources.list.d/getdeb.list'

share|improve this answer
none of those were in the software-center and i found this one archive.ubuntu.com/ubuntu/pool/universe/k/kautoclick but after installing it i get this error when trying to open it: kautoclick: error while loading shared libraries: libkdeui.so.4: cannot open shared object file: No such file or directory – Jeggy Aug 23 '12 at 20:23

For even more automation you can use sikuli.

Sikuli has integrated tool that allows you to really simply write any form of interaction(mouse clicking or keyboard) by visual processing where is what on screen.

You simply select where you want your click to occur by visually selecting screen part and off it goes. Automation logic is written in python, but even if you don't have any clue about python you can easily figure it out, because tool provides you with everything right away!

You can simply install it with sudo apt-get install sikuli-ide.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.