How can I make my mouse auto-click every 5 seconds? The 2019 Stack Overflow Developer Survey...

"... to apply for a visa" or "... and applied for a visa"?

Mortgage adviser recommends a longer term than necessary combined with overpayments

Do warforged have souls?

I could not break this equation. Please help me

Can smartphones with the same camera sensor have different image quality?

Hopping to infinity along a string of digits

Can a 1st-level character have an ability score above 18?

In horse breeding, what is the female equivalent of putting a horse out "to stud"?

How are presidential pardons supposed to be used?

Derivation tree not rendering

How did passengers keep warm on sail ships?

Sort list of array linked objects by keys and values

Make it rain characters

How to delete random line from file using Unix command?

What information about me do stores get via my credit card?

Are my PIs rude or am I just being too sensitive?

Take groceries in checked luggage

How can I protect witches in combat who wear limited clothing?

Keeping a retro style to sci-fi spaceships?

The following signatures were invalid: EXPKEYSIG 1397BC53640DB551

Am I ethically obligated to go into work on an off day if the reason is sudden?

A pet rabbit called Belle

Is it ethical to upload a automatically generated paper to a non peer-reviewed site as part of a larger research?

Scientific Reports - Significant Figures



How can I make my mouse auto-click every 5 seconds?



The 2019 Stack Overflow Developer Survey Results Are In
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Can I reprogram Mouse-Keys?How to disable “on mouse stop auto click”Disabling Auto/Dwell Click doesn't work in ubuntu 12.04How to adjust mouse click debounceAuto mouse click 25 seconds after mouse stops movingGaming, mouse get crazy when left clickfresh Ubuntu 16.04. Mouse and Keybord freeze every 1 seconds of inactivityI want to make a mouse click on a scheduled time automaticallyRun command on mouse clickHow to make xdotool auto-click repeatedly?





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







34















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































    34















    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



























      34












      34








      34


      17






      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
















      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?







      mouse






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Aug 24 '12 at 2:33









      Jorge Castro

      37.3k107422618




      37.3k107422618










      asked Aug 23 '12 at 20:00









      JeggyJeggy

      1,313134072




      1,313134072






















          5 Answers
          5






          active

          oldest

          votes


















          53














          Edit: xdotool click --delay 5000 --repeat 200 1



          For 200 clicks with mouse





          Open terminal, install xdotool



          sudo apt-get install xdotool


          Also, open the window you want to click side by side with terminal. Select terminal (as active window) and move the mouse over the point where you want to click. In terminal type (try not to move the mouse)



          xdotool getmouselocation


          You will need the x:XXX and y:YYY (bottom). You can move the mouse from here, but let windows stay where they are.
          Type



          gedit script


          Paste the following on gedit (change the XXX and YYY for the numbers you got before)



          #!/bin/bash
          while [ 1 ]; do
          xdotool mousemove XXX YYY click 1 &
          sleep 5
          done


          Save and close it. Then



          chmod +x script


          To execute it,



          ./script


          To get less, simply change the 5 after sleep to less.



          Source: http://manpages.ubuntu.com/manpages/lucid/man1/xdotool.1.html and http://ubuntuforums.org/showthread.php?t=925217






          share|improve this answer





















          • 3





            while sleep 5; do ...

            – Olathe
            Nov 13 '13 at 1:55






          • 1





            The 1 in click 1 means left mouse button. From the manpage: "Left mouse is 1, middle is 2, right is 3, wheel up is 4, wheel down is 5."

            – valid
            Aug 1 '14 at 13:28






          • 7





            xdotool click --delay 5000 --repeat 100000 1 (assuming the mouse is left where it needs to click). And no need for a script for more complicated cases... while loops work on the command line... (@Olathe's method is much better as well...). while sleep 5; do xdotool mousemove XXX YYY click 1; done

            – Gert van den Berg
            May 1 '16 at 21:05













          • @GertvandenBerg Please make your comment an answer!

            – holocronweaver
            Aug 22 '17 at 15:32











          • (That comment is now an answer)

            – Gert van den Berg
            Aug 23 '17 at 15:41



















          14














          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





















          • 9





            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





















          6















          In Lucid 10.04 LTS




          1. Open Ubuntu Software Center

          2. In the search box, type in autoclick


          3. Download xautoclick



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



            xautoclick instructions for install in precise



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



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




          4. Download xautoclick via the software center
            (or if you are handy with the terminal)



            sudo apt update && sudo apt upgrade && sudo apt install xautoclick



          5. Read the instructions on xautoclick man xautoclick

          6. Under Programs, Accesories choose xautoclick

          7. Change the Interval to 5000 (the value is milliseconds)

          8. Click Start

          9. Move the mouse over what you would like to click


          10. 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



















          4














          For even more automation you can use sikuli.



          Sikuli has integrated tool that allows you to very 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

































            4














            With xdotool installed: (apt-get install xdotool (As root or with sudo))



            This will click in the current mouse position every 5 seconds for 100000 times (That is somewhere between 5 and 6 days...)





            xdotool click --delay 5000 --repeat 100000 1 # (assuming the mouse is left where it needs to click).


            To click in a specific place: (In a command-line friendly version, for a script you probably want better formatting)



            while sleep 5; do xdotool mousemove XXX YYY click 1; done


            (--repeat can be used on the click here as well, but that won't repeat the move...)






            share|improve this answer


























            • Nice solution !!!

              – Eric Wang
              Feb 1 '18 at 8:28












            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "89"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f179581%2fhow-can-i-make-my-mouse-auto-click-every-5-seconds%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            5 Answers
            5






            active

            oldest

            votes








            5 Answers
            5






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            53














            Edit: xdotool click --delay 5000 --repeat 200 1



            For 200 clicks with mouse





            Open terminal, install xdotool



            sudo apt-get install xdotool


            Also, open the window you want to click side by side with terminal. Select terminal (as active window) and move the mouse over the point where you want to click. In terminal type (try not to move the mouse)



            xdotool getmouselocation


            You will need the x:XXX and y:YYY (bottom). You can move the mouse from here, but let windows stay where they are.
            Type



            gedit script


            Paste the following on gedit (change the XXX and YYY for the numbers you got before)



            #!/bin/bash
            while [ 1 ]; do
            xdotool mousemove XXX YYY click 1 &
            sleep 5
            done


            Save and close it. Then



            chmod +x script


            To execute it,



            ./script


            To get less, simply change the 5 after sleep to less.



            Source: http://manpages.ubuntu.com/manpages/lucid/man1/xdotool.1.html and http://ubuntuforums.org/showthread.php?t=925217






            share|improve this answer





















            • 3





              while sleep 5; do ...

              – Olathe
              Nov 13 '13 at 1:55






            • 1





              The 1 in click 1 means left mouse button. From the manpage: "Left mouse is 1, middle is 2, right is 3, wheel up is 4, wheel down is 5."

              – valid
              Aug 1 '14 at 13:28






            • 7





              xdotool click --delay 5000 --repeat 100000 1 (assuming the mouse is left where it needs to click). And no need for a script for more complicated cases... while loops work on the command line... (@Olathe's method is much better as well...). while sleep 5; do xdotool mousemove XXX YYY click 1; done

              – Gert van den Berg
              May 1 '16 at 21:05













            • @GertvandenBerg Please make your comment an answer!

              – holocronweaver
              Aug 22 '17 at 15:32











            • (That comment is now an answer)

              – Gert van den Berg
              Aug 23 '17 at 15:41
















            53














            Edit: xdotool click --delay 5000 --repeat 200 1



            For 200 clicks with mouse





            Open terminal, install xdotool



            sudo apt-get install xdotool


            Also, open the window you want to click side by side with terminal. Select terminal (as active window) and move the mouse over the point where you want to click. In terminal type (try not to move the mouse)



            xdotool getmouselocation


            You will need the x:XXX and y:YYY (bottom). You can move the mouse from here, but let windows stay where they are.
            Type



            gedit script


            Paste the following on gedit (change the XXX and YYY for the numbers you got before)



            #!/bin/bash
            while [ 1 ]; do
            xdotool mousemove XXX YYY click 1 &
            sleep 5
            done


            Save and close it. Then



            chmod +x script


            To execute it,



            ./script


            To get less, simply change the 5 after sleep to less.



            Source: http://manpages.ubuntu.com/manpages/lucid/man1/xdotool.1.html and http://ubuntuforums.org/showthread.php?t=925217






            share|improve this answer





















            • 3





              while sleep 5; do ...

              – Olathe
              Nov 13 '13 at 1:55






            • 1





              The 1 in click 1 means left mouse button. From the manpage: "Left mouse is 1, middle is 2, right is 3, wheel up is 4, wheel down is 5."

              – valid
              Aug 1 '14 at 13:28






            • 7





              xdotool click --delay 5000 --repeat 100000 1 (assuming the mouse is left where it needs to click). And no need for a script for more complicated cases... while loops work on the command line... (@Olathe's method is much better as well...). while sleep 5; do xdotool mousemove XXX YYY click 1; done

              – Gert van den Berg
              May 1 '16 at 21:05













            • @GertvandenBerg Please make your comment an answer!

              – holocronweaver
              Aug 22 '17 at 15:32











            • (That comment is now an answer)

              – Gert van den Berg
              Aug 23 '17 at 15:41














            53












            53








            53







            Edit: xdotool click --delay 5000 --repeat 200 1



            For 200 clicks with mouse





            Open terminal, install xdotool



            sudo apt-get install xdotool


            Also, open the window you want to click side by side with terminal. Select terminal (as active window) and move the mouse over the point where you want to click. In terminal type (try not to move the mouse)



            xdotool getmouselocation


            You will need the x:XXX and y:YYY (bottom). You can move the mouse from here, but let windows stay where they are.
            Type



            gedit script


            Paste the following on gedit (change the XXX and YYY for the numbers you got before)



            #!/bin/bash
            while [ 1 ]; do
            xdotool mousemove XXX YYY click 1 &
            sleep 5
            done


            Save and close it. Then



            chmod +x script


            To execute it,



            ./script


            To get less, simply change the 5 after sleep to less.



            Source: http://manpages.ubuntu.com/manpages/lucid/man1/xdotool.1.html and http://ubuntuforums.org/showthread.php?t=925217






            share|improve this answer















            Edit: xdotool click --delay 5000 --repeat 200 1



            For 200 clicks with mouse





            Open terminal, install xdotool



            sudo apt-get install xdotool


            Also, open the window you want to click side by side with terminal. Select terminal (as active window) and move the mouse over the point where you want to click. In terminal type (try not to move the mouse)



            xdotool getmouselocation


            You will need the x:XXX and y:YYY (bottom). You can move the mouse from here, but let windows stay where they are.
            Type



            gedit script


            Paste the following on gedit (change the XXX and YYY for the numbers you got before)



            #!/bin/bash
            while [ 1 ]; do
            xdotool mousemove XXX YYY click 1 &
            sleep 5
            done


            Save and close it. Then



            chmod +x script


            To execute it,



            ./script


            To get less, simply change the 5 after sleep to less.



            Source: http://manpages.ubuntu.com/manpages/lucid/man1/xdotool.1.html and http://ubuntuforums.org/showthread.php?t=925217







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited 53 mins ago

























            answered Aug 5 '13 at 18:05









            Alexandre CamposAlexandre Campos

            646164




            646164








            • 3





              while sleep 5; do ...

              – Olathe
              Nov 13 '13 at 1:55






            • 1





              The 1 in click 1 means left mouse button. From the manpage: "Left mouse is 1, middle is 2, right is 3, wheel up is 4, wheel down is 5."

              – valid
              Aug 1 '14 at 13:28






            • 7





              xdotool click --delay 5000 --repeat 100000 1 (assuming the mouse is left where it needs to click). And no need for a script for more complicated cases... while loops work on the command line... (@Olathe's method is much better as well...). while sleep 5; do xdotool mousemove XXX YYY click 1; done

              – Gert van den Berg
              May 1 '16 at 21:05













            • @GertvandenBerg Please make your comment an answer!

              – holocronweaver
              Aug 22 '17 at 15:32











            • (That comment is now an answer)

              – Gert van den Berg
              Aug 23 '17 at 15:41














            • 3





              while sleep 5; do ...

              – Olathe
              Nov 13 '13 at 1:55






            • 1





              The 1 in click 1 means left mouse button. From the manpage: "Left mouse is 1, middle is 2, right is 3, wheel up is 4, wheel down is 5."

              – valid
              Aug 1 '14 at 13:28






            • 7





              xdotool click --delay 5000 --repeat 100000 1 (assuming the mouse is left where it needs to click). And no need for a script for more complicated cases... while loops work on the command line... (@Olathe's method is much better as well...). while sleep 5; do xdotool mousemove XXX YYY click 1; done

              – Gert van den Berg
              May 1 '16 at 21:05













            • @GertvandenBerg Please make your comment an answer!

              – holocronweaver
              Aug 22 '17 at 15:32











            • (That comment is now an answer)

              – Gert van den Berg
              Aug 23 '17 at 15:41








            3




            3





            while sleep 5; do ...

            – Olathe
            Nov 13 '13 at 1:55





            while sleep 5; do ...

            – Olathe
            Nov 13 '13 at 1:55




            1




            1





            The 1 in click 1 means left mouse button. From the manpage: "Left mouse is 1, middle is 2, right is 3, wheel up is 4, wheel down is 5."

            – valid
            Aug 1 '14 at 13:28





            The 1 in click 1 means left mouse button. From the manpage: "Left mouse is 1, middle is 2, right is 3, wheel up is 4, wheel down is 5."

            – valid
            Aug 1 '14 at 13:28




            7




            7





            xdotool click --delay 5000 --repeat 100000 1 (assuming the mouse is left where it needs to click). And no need for a script for more complicated cases... while loops work on the command line... (@Olathe's method is much better as well...). while sleep 5; do xdotool mousemove XXX YYY click 1; done

            – Gert van den Berg
            May 1 '16 at 21:05







            xdotool click --delay 5000 --repeat 100000 1 (assuming the mouse is left where it needs to click). And no need for a script for more complicated cases... while loops work on the command line... (@Olathe's method is much better as well...). while sleep 5; do xdotool mousemove XXX YYY click 1; done

            – Gert van den Berg
            May 1 '16 at 21:05















            @GertvandenBerg Please make your comment an answer!

            – holocronweaver
            Aug 22 '17 at 15:32





            @GertvandenBerg Please make your comment an answer!

            – holocronweaver
            Aug 22 '17 at 15:32













            (That comment is now an answer)

            – Gert van den Berg
            Aug 23 '17 at 15:41





            (That comment is now an answer)

            – Gert van den Berg
            Aug 23 '17 at 15:41













            14














            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





















            • 9





              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


















            14














            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





















            • 9





              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
















            14












            14








            14







            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















            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














            share|improve this answer



            share|improve this answer








            edited Aug 24 '12 at 2:34









            Jorge Castro

            37.3k107422618




            37.3k107422618










            answered Aug 23 '12 at 20:35









            JeggyJeggy

            1,313134072




            1,313134072








            • 9





              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
















            • 9





              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










            9




            9





            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







            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













            6















            In Lucid 10.04 LTS




            1. Open Ubuntu Software Center

            2. In the search box, type in autoclick


            3. Download xautoclick



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



              xautoclick instructions for install in precise



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



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




            4. Download xautoclick via the software center
              (or if you are handy with the terminal)



              sudo apt update && sudo apt upgrade && sudo apt install xautoclick



            5. Read the instructions on xautoclick man xautoclick

            6. Under Programs, Accesories choose xautoclick

            7. Change the Interval to 5000 (the value is milliseconds)

            8. Click Start

            9. Move the mouse over what you would like to click


            10. 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
















            6















            In Lucid 10.04 LTS




            1. Open Ubuntu Software Center

            2. In the search box, type in autoclick


            3. Download xautoclick



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



              xautoclick instructions for install in precise



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



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




            4. Download xautoclick via the software center
              (or if you are handy with the terminal)



              sudo apt update && sudo apt upgrade && sudo apt install xautoclick



            5. Read the instructions on xautoclick man xautoclick

            6. Under Programs, Accesories choose xautoclick

            7. Change the Interval to 5000 (the value is milliseconds)

            8. Click Start

            9. Move the mouse over what you would like to click


            10. 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














            6












            6








            6








            In Lucid 10.04 LTS




            1. Open Ubuntu Software Center

            2. In the search box, type in autoclick


            3. Download xautoclick



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



              xautoclick instructions for install in precise



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



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




            4. Download xautoclick via the software center
              (or if you are handy with the terminal)



              sudo apt update && sudo apt upgrade && sudo apt install xautoclick



            5. Read the instructions on xautoclick man xautoclick

            6. Under Programs, Accesories choose xautoclick

            7. Change the Interval to 5000 (the value is milliseconds)

            8. Click Start

            9. Move the mouse over what you would like to click


            10. 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
















            In Lucid 10.04 LTS




            1. Open Ubuntu Software Center

            2. In the search box, type in autoclick


            3. Download xautoclick



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



              xautoclick instructions for install in precise



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



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




            4. Download xautoclick via the software center
              (or if you are handy with the terminal)



              sudo apt update && sudo apt upgrade && sudo apt install xautoclick



            5. Read the instructions on xautoclick man xautoclick

            6. Under Programs, Accesories choose xautoclick

            7. Change the Interval to 5000 (the value is milliseconds)

            8. Click Start

            9. Move the mouse over what you would like to click


            10. 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














            share|improve this answer



            share|improve this answer








            edited Dec 9 '17 at 20:29









            dessert

            25.5k674108




            25.5k674108










            answered Aug 23 '12 at 20:13









            Kat AmsterdamKat Amsterdam

            2,31511014




            2,31511014













            • 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



















            • 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

















            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





            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











            4














            For even more automation you can use sikuli.



            Sikuli has integrated tool that allows you to very 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






























              4














              For even more automation you can use sikuli.



              Sikuli has integrated tool that allows you to very 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




























                4












                4








                4







                For even more automation you can use sikuli.



                Sikuli has integrated tool that allows you to very 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















                For even more automation you can use sikuli.



                Sikuli has integrated tool that allows you to very 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














                share|improve this answer



                share|improve this answer








                edited May 27 '16 at 14:26









                Nemo

                1279




                1279










                answered Aug 24 '12 at 8:28









                offlinehackerofflinehacker

                1492




                1492























                    4














                    With xdotool installed: (apt-get install xdotool (As root or with sudo))



                    This will click in the current mouse position every 5 seconds for 100000 times (That is somewhere between 5 and 6 days...)





                    xdotool click --delay 5000 --repeat 100000 1 # (assuming the mouse is left where it needs to click).


                    To click in a specific place: (In a command-line friendly version, for a script you probably want better formatting)



                    while sleep 5; do xdotool mousemove XXX YYY click 1; done


                    (--repeat can be used on the click here as well, but that won't repeat the move...)






                    share|improve this answer


























                    • Nice solution !!!

                      – Eric Wang
                      Feb 1 '18 at 8:28
















                    4














                    With xdotool installed: (apt-get install xdotool (As root or with sudo))



                    This will click in the current mouse position every 5 seconds for 100000 times (That is somewhere between 5 and 6 days...)





                    xdotool click --delay 5000 --repeat 100000 1 # (assuming the mouse is left where it needs to click).


                    To click in a specific place: (In a command-line friendly version, for a script you probably want better formatting)



                    while sleep 5; do xdotool mousemove XXX YYY click 1; done


                    (--repeat can be used on the click here as well, but that won't repeat the move...)






                    share|improve this answer


























                    • Nice solution !!!

                      – Eric Wang
                      Feb 1 '18 at 8:28














                    4












                    4








                    4







                    With xdotool installed: (apt-get install xdotool (As root or with sudo))



                    This will click in the current mouse position every 5 seconds for 100000 times (That is somewhere between 5 and 6 days...)





                    xdotool click --delay 5000 --repeat 100000 1 # (assuming the mouse is left where it needs to click).


                    To click in a specific place: (In a command-line friendly version, for a script you probably want better formatting)



                    while sleep 5; do xdotool mousemove XXX YYY click 1; done


                    (--repeat can be used on the click here as well, but that won't repeat the move...)






                    share|improve this answer















                    With xdotool installed: (apt-get install xdotool (As root or with sudo))



                    This will click in the current mouse position every 5 seconds for 100000 times (That is somewhere between 5 and 6 days...)





                    xdotool click --delay 5000 --repeat 100000 1 # (assuming the mouse is left where it needs to click).


                    To click in a specific place: (In a command-line friendly version, for a script you probably want better formatting)



                    while sleep 5; do xdotool mousemove XXX YYY click 1; done


                    (--repeat can be used on the click here as well, but that won't repeat the move...)







                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited Dec 9 '17 at 20:27









                    dessert

                    25.5k674108




                    25.5k674108










                    answered Aug 23 '17 at 15:39









                    Gert van den BergGert van den Berg

                    1679




                    1679













                    • Nice solution !!!

                      – Eric Wang
                      Feb 1 '18 at 8:28



















                    • Nice solution !!!

                      – Eric Wang
                      Feb 1 '18 at 8:28

















                    Nice solution !!!

                    – Eric Wang
                    Feb 1 '18 at 8:28





                    Nice solution !!!

                    – Eric Wang
                    Feb 1 '18 at 8:28


















                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Ask Ubuntu!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f179581%2fhow-can-i-make-my-mouse-auto-click-every-5-seconds%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    List of shipwrecks in 1808...

                    Is there a lightweight tool to crop images quickly?Cropping Images using Command Line Tools OnlyHow to crop...

                    Unit packagekit.service is masked Announcing the arrival of Valued Associate #679: Cesar...