28

This question already has an answer here:

I've clicked the hell out of this Unicorn-app and almost destroyed my mouse - got some suggestions on how to be more effective mining Unicoins?

I mean, there must be some javascript-hack?

Placed Bounty: 100,000,000 reputation points


Edit: Thanks to everyone having some little fun at this harsh and unemotional website. :) A big shout-out to the SO-Devs for this awesome widget. cya

marked as duplicate by Martijn Pieters, Antony, ProgramFOX, hims056, George Stocker Apr 1 '14 at 18:40

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

migrated from stackoverflow.com Apr 1 '14 at 15:23

This question came from our site for professional and enthusiast programmers.

  • 17
    You should outsource the clicking off-shore. That would certainly be cheaper than the unicoins you gain, so that's a clear win-win. – Wouter Apr 1 '14 at 6:23
  • 1
    nailed it wesley :) – init3 Apr 1 '14 at 6:38
  • I have a python script to automate mining ;) – Tom O'Connor Apr 1 '14 at 11:00
  • pics or it did not happen (dpaste is allowed also) :D – init3 Apr 1 '14 at 11:12
  • 2
    I love unicorns! – 5agado Apr 1 '14 at 11:19
  • I have the code. Need this question reopened! Unfortunately, the code is in C#... – Dialecticus Apr 1 '14 at 11:35
  • @Dialecticus I have the code, or at least the outline of the code, notated in the margin of my book. There isn't room for the full publication yet but I'll do so soon.... aaacck! help! heart attack! – Carl Witthoft Apr 1 '14 at 11:42
  • looks like it's open again... – init3 Apr 1 '14 at 11:56
  • @init3 I hope your question wont be deleted like mine similar did. There are clandestine forces at work that want you to break the mouse while mining Unicoins... – Dialecticus Apr 1 '14 at 12:07
  • hehe - it's more that nerdy "uhhh, that's so offtopic downvote hammer" thing over here ;) // edit: Zdravo ;) – init3 Apr 1 '14 at 12:08
  • 3
    Mined a rock. Instead of containing Unicoins, contained bobcat. Would not mine again. Will send army of raptormolpys to do mining. – Carl Witthoft Apr 1 '14 at 12:18
  • Placed Bounty: 100,000,000 reputation points – Derek 朕會功夫 Apr 18 '15 at 2:48
8

Using Keith's C# class MouseOperation and the code below all you need is to point to the rock and hold Shift:

[DllImport("user32.dll", CharSet = CharSet.Auto, ExactSpelling = true)]
public static extern short GetAsyncKeyState(int vkey);

static void Main(string[] args)
{
    for (;;)
    {
        System.Threading.Thread.Sleep(5);
        if (GetAsyncKeyState(0xA0 /*VK_SHIFT*/) == 0)
            continue;

        MouseOperations.MouseEvent(MouseOperations.MouseEventFlags.LeftDown);
        MouseOperations.MouseEvent(MouseOperations.MouseEventFlags.LeftUp);
    }
}
  • Countdown to SO implementing a Dead Time Interrupt for incoming mouse clicks.... 5... 4... 3... – Carl Witthoft Apr 1 '14 at 12:09
  • marked correct because c# – Thomas Schwärzl Apr 1 '14 at 15:51
5
var o = new Collection(StackExchange.Account.Derek, StackExchange.Account.init3);

o.addToCollection(StackExchange.Account.Wesley);   // update: forgot this!
o.transferTo(StackExchange.Account.Cryptoburner);  // notice the notation

Works for me! :-o

  • ^^ DOSNT WORK..................... – user159834 Apr 1 '14 at 6:41
  • 7
    PLS ITS URGANET – user159834 Apr 1 '14 at 6:42
  • @WesleyMurch bugger! I forgot the last part. I'll update. – epistemex Apr 1 '14 at 6:42
  • 1
    TNAK YOU IT SOLVE MY PROBEM – user159834 Apr 1 '14 at 6:42
  • 3
    -1 NOT Enoguh jQuery! – Derek 朕會功夫 Apr 1 '14 at 6:43
  • @Derek朕會功夫 every downvote is actually a transaction from the downvoters account – epistemex Apr 1 '14 at 6:45
  • HOW TO GIVE BOUTNY FOR THIS QUERY??????????? – user159834 Apr 1 '14 at 6:46
  • You need to donate bacon to me so I'm in the mood to enable the bounty-snickers-feature! – init3 Apr 1 '14 at 6:48
3
StackExchange.uc.setBalance(99999999);

Unicorn ftw

  • 1
    that didn't work except that it was shown literally, but not usable – Amit Joki Apr 1 '14 at 6:34
  • @AmitJoki - Hmm you are right, I'll work on it more. – Derek 朕會功夫 Apr 1 '14 at 6:35
  • 2
    +! I HAD TH ADME SAME PROB<EM – user159834 Apr 1 '14 at 6:38
  • Won't work: Unicoin Integer Overflow at 99999998 :-( – Carl Witthoft Apr 1 '14 at 11:43
  • 2
    Is that what a uint is??? – Brody Robertson Apr 1 '14 at 15:17
  • This only changes the count of Unicoins on the client-side, not on the server-side. After a refresh, it's undone. – ProgramFOX Apr 1 '14 at 15:29
  • Fits with the theme of April Fools though... – crush Apr 1 '14 at 19:00
3

The script here does the job better :), from: https://meta.stackexchange.com/a/227404/171291

(function uniMine()
{
    $.getJSON('/unicoin/rock', function(data)
    {
        setTimeout(function()
        {
            $.post('/unicoin/mine?rock=' + data.rock, {fkey: StackExchange.options.user.fkey});
        }, 10000);
    });
    setTimeout(uniMine, 11000);
})();
  • 1
    I did pretty much the same thing before coming here to post my script. Instead of explicitly requesting a rock, I was just subscribed to $.ajaxSuccess and sent the mine request when the rock was received. Yours looks like it might be more efficient. – crush Apr 1 '14 at 18:18
1

I created the following script:

jQuery(document).ajaxSuccess(function (event, xhr, settings) {
    if (settings.url.indexOf('/unicoin/rock') !== -1) {
        var rock = JSON.parse(xhr.responseText).rock;

        $.post('http://stackoverflow.com/unicoin/mine?rock=' + rock, { fkey: StackExchange.options.user.fkey });
    }
});

Pretty much the same thing as stringo0, only this one listens for rocks, and immediately sends a mine request.

Not the answer you're looking for? Browse other questions tagged .