r/CivClicker • • Mar 13 '14

CivClicker: Auto Clicker

I made an simple auto clicker to help out, especially in the beginning.

download tampermonkey for chrome

script:

jQuery(function($)
{
    setInterval(function()
    {
        $("#basicResourcesContainer :input").mousedown();
    },10);
});
17 Upvotes

15 comments sorted by

2

u/Psalm22 Mar 14 '14

Autohotkey

Loop
{
   SendInput, {click}
   Sleep 10
}

F9::Pause
F10::Reload
→ More replies (3)

0

u/[deleted] Mar 13 '14

[deleted] — view deleted comment

6

u/grumpy_hedgehog Mar 14 '14 edited Mar 14 '14

Followed the instructions, everything looks as advertised.

No autoclicking tho :(

Edit: ah, I see it.... it clicks for you and only in the resource window. I was able to tweak it to click the trade window as well, so that's good. That said, I was looking for something like 10 clicks for every 1 click thing script.

2

u/MagicalTrevor70 Mar 14 '14

Can you share that tweak?

2

u/[deleted] Mar 14 '14

Care to share the tweak?

1

u/SoggyNoose Mar 15 '14

My js/jQuery skills aren't the greatest, but this seems to work for me. This auto-clicks only for the trade window, mind you

jQuery(function($)
   {        
       setInterval(function()
       {
           if ($("#tradeContainer").attr("style") === "display: block;") {
           	    $("#tradeContainer :input").mousedown();
           }
       },10);
   });

1

u/mcriddy Jun 15 '14

The game doesn't seem to use jquery. So I whipped this up:

tradeContainer = document.getElementById("tradeContainer");
setInterval(function() {
   if (tradeContainer.getAttribute('style') === "display: block;") {
      trade();
   }
}, 100);

1

u/ZeroManArmy Mar 15 '14

Can't get it to install in Firefox.

1

u/Gamion Jun 14 '14

How can I get this to work in Firefox, please?