28

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

12
  • 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
    Commented Apr 1, 2014 at 6:23
  • 1
    nailed it wesley :)
    – init3
    Commented Apr 1, 2014 at 6:38
  • I have a python script to automate mining ;) Commented Apr 1, 2014 at 11:00
  • pics or it did not happen (dpaste is allowed also) :D
    – init3
    Commented Apr 1, 2014 at 11:12
  • 2
    I love unicorns!
    – 5agado
    Commented Apr 1, 2014 at 11:19
  • I have the code. Need this question reopened! Unfortunately, the code is in C#...
    – Dialecticus
    Commented Apr 1, 2014 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! Commented Apr 1, 2014 at 11:42
  • looks like it's open again...
    – init3
    Commented Apr 1, 2014 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
    Commented Apr 1, 2014 at 12:07
  • hehe - it's more that nerdy "uhhh, that's so offtopic downvote hammer" thing over here ;) // edit: Zdravo ;)
    – init3
    Commented Apr 1, 2014 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. Commented Apr 1, 2014 at 12:18
  • Placed Bounty: 100,000,000 reputation points Commented Apr 18, 2015 at 2:48

5 Answers 5

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);
    }
}
2
  • Countdown to SO implementing a Dead Time Interrupt for incoming mouse clicks.... 5... 4... 3... Commented Apr 1, 2014 at 12:09
  • marked correct because c# Commented Apr 1, 2014 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

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

Unicorn ftw

7
  • 1
    that didn't work except that it was shown literally, but not usable
    – Amit Joki
    Commented Apr 1, 2014 at 6:34
  • @AmitJoki - Hmm you are right, I'll work on it more. Commented Apr 1, 2014 at 6:35
  • 2
    +! I HAD TH ADME SAME PROB<EM
    – user159834
    Commented Apr 1, 2014 at 6:38
  • Won't work: Unicoin Integer Overflow at 99999998 :-( Commented Apr 1, 2014 at 11:43
  • 2
    Is that what a uint is??? Commented Apr 1, 2014 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
    Commented Apr 1, 2014 at 15:29
  • Fits with the theme of April Fools though...
    – crush
    Commented Apr 1, 2014 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
  • 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
    Commented Apr 1, 2014 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 .