Since some folks have expressed interest in trying this bot for themselves, I decided to share the source code and binary πŸ™‚

It’s not perfect, but you can tweak the source code (for example, changing how long rp_thread::sleep() is called, and where), and probably get some better performance. If you’re up for a challenge, you can also try to improve the code that decides on the next move! (if you do, it’d be great if you shared the changes!).

Anyway, here is the zip file. [ autoblitz-export.zip ]

The binaries are in the export directory. You will be asked for a “hWnd” (window handle), which can be found using the program “Spyxx” which comes with visual studio.

163 thoughts on “autoblitz + source code

  1. If you get errors trying to run the binary, you might need to install “Microsoft Visual C++ 2008 SP1 Redistributable Package (x86)” — a google search brings up the download page from Microsoft.

    Like

  2. Hello, managed to get it to attach. It shows all the correct colours of the grid on the app, but it doesn’t move the gems?

    Like

  3. The handle is Bejeweled Blitz under the Frame Tab of Bejeweled Blitz IE Window.

    You must make some positioning of the grid to correct the allignment, but after getting the correct allignment the program doesn’t shift the gems for me 😦

    Like

  4. I use firefox much better than IE i found the handle using winspector spy and it works no propblems after using the handle.

    Like

  5. hwnd is the windows handle created when you visit a certain site.
    Ive loaded the handle and when i run the bot, nothing happens, am i missing something !!!!!
    All those who run this, could you explain how

    Like

  6. same here, when i load the handle nothing happens and program says : “cursor is inside window … waiting”
    what am i doing wrong?

    Like

  7. oK FIGURED IT OUT, AWSOME, MANY THX
    download a programme called winspector
    Drag the curser over the facebook bejeweled window, and copy the windows handle into the autobot.

    Like

  8. jeps, i use winspector too, loaded handle,
    moved cursor out of game box,
    but the porgram keeps flashing ” -current game board-”
    and stones don’t move. I’m probably still doing something wrong.

    Great job anyway!

    Like

  9. hi i have no idea how to get this blit download to work….i want to beat my mates at the game as im crap. can you help me set it in motion.

    Like

  10. ok have the handle entered and also double checked it with winspector. its reading the jewels and i can see activity in the autoblitz, when i put the cusor in the game its saying cursor inside the window…….waiting. so i have taken the cursor out but nothing is happening.

    what am i doing wrong???

    Like

  11. In winspector, were it says “click and drag to select a window” and release it in winspector a tree will open, NOW YOU SHOULD SEE IN THE WINSWPECTOR WINDOW THE HIGHLITED PAGE CALLED MOZILLA WINDOW CLASS, OR WINDOWS EXPLORER CLASS, YOU MUST WRITE THE FIRST 8 DIGITS INTO THE HWND, THEN PRESS ENTER, DONT LEAVE YOUR CURSER IN THE MAIN BEJEWELED PAGE, YOU MUST MOVE THE CURSER OUTSIDE THE WINDOW FOR IT TO WORK
    MINIMIZE THE BOT WINDOW AND ALSO THE WINSPWECTOR WINDOW……happy jeweling, any problems, i will post a screeny

    Like

  12. it should only get stuck once in a while. basically you can just leave it running and after the 1 minute times out, it starts the next game automatically. it would be nice to fix this bug, but i probably won’t get around to it for a while

    Like

  13. Works fine but could be better, it gets stuck a lot here.I tweaked rp_thread::sleep() to go a bit faster.
    But in most of the games it gets stuck on certain moves, and it needs a little help.

    Anyway got a max score of 97,000 out of it, till now.
    it doesn’t beat human, but it should πŸ™‚

    Someone already tweaked this or changed some codes?

    Like

  14. I had made some changes between when I got a 250k score and when I released the source code. I forgot what the changes were!… The fun is for you to tweak it and improve it πŸ™‚

    Like

  15. you say that it should start the next game automatically. In my case i see the “play again” button flashing, but the bot doesn’t push it.
    Maybe that’s also why he gets stuck so much in the game here, he sees the move but doesn’t make it sometimes.

    Am i doing something wrong?

    Like

  16. if you could make the bot give priority to special stones an multiplyers, scores probably would go much higher than they do now.

    Like

  17. I’m new to all this so how do you run this and get it working, i have downloaded ms visual cc+ 2008 and winspector but still am confused, any help would be appreciated, i am a complete novice.

    Like

  18. It would be easy to prioritize the multipliers/specials, just the trick is how to detect them. The technique using now, where it averages the color, isn’t able to do it. Would need to expand this to be more clever.

    Like

  19. 249k nice! almost 250 πŸ™‚ (when you get 250k, it says that’s the highest award you can get). Maybe if you leave it running while you’re gone/asleep..

    Like

  20. thats what i done yesterday.
    i went to family’s house, and i came back with tht score, i dont know how to thank you.

    Like

  21. I had this problem too, but now I use firefox and it works

    – start firefox, goto the bejeweled game
    – start autoblitz
    – start the winspector

    from winspector , drag the red crosshair target thing onto the bejeweled part of the webpage

    In winspector you wil see a bunch of firefox-icons with numbers and text appear .

    One of these has a grey background

    Type that one’s number (eg 0012b4c1 ) in the autoblitz and press enter . The game will start πŸ™‚

    Like

  22. guys a lot of people seem to be having a similar problem so help us out πŸ™‚
    handle is loaded and the bot says β€œcursor is inside window … waiting” so I move the cursor outside the window and now the bot keeps flashing ” – current game board – ” and stones don’t move.
    what m i doing wrong?

    Like

  23. hi Krazy horse i have followed you tips and drap dropped etc… the number i type in was from mozillauiwindowclass 000204a0 then i click start on bejewelled and the it changes to
    wwwwwwwwwwwwwwwb
    bbbbbbbbbbbbbbbw
    gggggggggggggggw

    and so on this is on the current game board but nothing happens and the game comes to an end. i must be doing something wrong……does this app defo work on facebook bejewelled?

    please help

    Like

  24. Glad to see you got it working
    My current high score is 241,700
    Im working on changing a few things.
    Ive noticed it goes for 3s and bypasses the “special stones” when theres clearly 4 or even 5, trying to change it so when that happens, it auto goes for the highest….
    Will let you all know when i finished

    Once again thx caustik
    You da man
    rESPECT

    Like

  25. Petatje your a fukin star!!
    Thank you so much!
    Your the only person who knowz how to EXPLAIN!
    My bot was kinda stupid in the first few games, I could have played much better than it! LOL
    Thanks though! πŸ˜€ πŸ˜€ πŸ˜€ πŸ˜€

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s