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. Ok ive edited some stuff and heres my current score:
    [IMG]http://i4.photobucket.com/albums/y134/Dragonorf/bejeweled.jpg[/IMG]
    Am still having trouble with it pausing every once in a while, when its sorted i’ll let you know caustik

    Like

  2. for those who have the problem, that bot keeps flashing “current game board”, i had it too, when i tried the bot on firefox. But when i tried it on internet explorer it worked fine for some reason.

    203k now πŸ™‚

    Like

  3. ok im new at all of this. can anyone help me with getting the autoblitz export to work. i cant seem to get it to do anything. all i can do is open or try to read text documents.

    Like

  4. – 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

  5. Jopa i cant even get it to work on ie but work fine on ffox……… top score so far is 189,000 although im having to assit it during the game on activating the gems…….. does anyone have an updated version!

    its mint though. all my mates are going loopy as im whooping the butts

    thanks again

    Like

  6. hey

    I am trying to compile using the MakeFile but got the error.

    makefile : fatal error U1036: syntax error : too many names to left of ‘=’ Stop.

    Like

  7. It works great but always hitting 150K only 😦
    So far i only know how to run the program – Caustik any updated scripts to share? Thanks mate

    Like

  8. Ok I am really banging my head against a wall here…. Where is a fully working Tutorial for this programe? Some people have written bits and piceses but not in depth look into how this all works! I have been here now for 7 hours (yeah laugh it up) and no matter what I do I cannot get it to run, I have tried a heap of diff things and I still cant even get the handle??? I guess the only way for us NON Programers are going to find out is by asking a friendly programer who would love to help!!

    Thank you in advance to the Friendly Programer that would love to assit us NON Programers πŸ™‚

    Like

  9. Forgrt the last message lol

    Ummmm the only prob I have now is (cursor is inside the window…waiting) But Ummmm there is no cursur when I start the game ??? What have I done wrong I seen someone above said they had the same problem and fixed it but never mentioned how they got it running ?

    Please help thanks πŸ™‚

    Like

  10. leave you email visable on the here and ill sit down and talk you through it step by step. its not that tough and once you read through my instructions you will have it running in mmmmmmmmhhhhh about 2mins flat. oh and tell what O/S (operating system) your using.

    chapee.

    Like

  11. SPIFFY

    leave you email visable on the here and ill sit down and talk you through it step by step. its not that tough and once you read through my instructions you will have it running in mmmmmmmmhhhhh about 2mins flat. oh and tell what O/S (operating system) your using.

    chapee.

    Like

  12. still dont get it.
    sorry for being stupid here.
    im stuck even at the first step.
    i have the winspector. but many people says open the autoblitz bot. but where is it and how???????
    wheres the autoblitz bot located under?

    Like

  13. ive downloaded visual c ++ and everything was ok then downloaded winspector now i cant do anything with my laptop its got a mind of its own think ive done something really wrong as had to come on pc to write this, please can someone help me, thank you

    Like

  14. Hi all,

    got it working with winspector spy. Works like a charm. Couple of things i’ve noticed which might help people.

    1/ On My Machine, I cannot run winsppector with autoblitz running. Get the window handle first, close winspector and open autoblitz.

    2/ Ensure the facebook page is maximised and that the side scroll bar is fully at the top of the page.

    3/ If Bejewelled gets locked up (it happens sometimes) do not reload the facebook page! Simply right click on the gameboard and choose rewind) this way you don’t have to discover and enter the new window handle.

    Hope thes may help some. Thanks for a great app!! (192K so far πŸ™‚

    Like

    1. hi, i use winspector too it does work like a charm, but have to open winspector last as cant do nothing with my pc while its on,

      Like

  15. Keep in mind that you can use autoblitz as a copilot. You can play like normal, and move the mouse cursor off the window whenever you need help. If you do this just right, you can make smarter choices then the bot, while still keeping the action constantly going, which is likely to get you a higher score. For example, you can step into the game whenever there is a chance to get the bonus pieces, since the bot doesn’t know how to recognize them. This is how I managed to break the 250k barrier.. πŸ™‚

    Like

  16. I download autoblitz-export.zip to my Desktop. I click on autoblitz-export.zip but nothing happens. How do I open autoblitz-export.zip?

    Also, I accidently dragged the ‘Internet’ into the ‘Recycling Bin’. I really like reading the Internets and don’t wish to delete it for everyone when I empty the ‘Recycling Bin’. I really need to empty it soon, because my son says if leave thing in it that’s where virus come from. Similar to how you leave garage in the kitchen and it starts to smell. My son is very smart, and in the top 10 of his class.

    Thanks.

    Like

  17. OK, you determine the value based on the average color value – however as near as I can tell, it isn’t able to differentiate between a hypergem and a white gem, or between a regular and a blast gem of the same color, correct?

    I would think (I could be wrong, haven’t looked at the gem assets yet) – wouldn’t it would be easier to look for an RGB value that is unique to that gem within a block – if it’s there, it’s that color. (I am, of course, assuming that there is at least one unique value per gem – if not, then I guess it would be back to tweaking your averaging algorithm).

    Krazy Horse, can you update on what tweaks you’ve made?

    So far, I haven’t broken 250k…yet πŸ™‚ (244k is my closest)

    Like

  18. The unique color per block technique sounds like it could work. Animations may or may not be a problem, only way to find out for sure is to try it πŸ™‚

    Like

  19. I am installing this but for some reason only the bottom 2 gems keep getting swapped?

    Seems like I am the only one with this issue everything else is working properly I believe.

    Like

  20. JJ – nah, it’s not you – it happens to me as well, and is especially pronounced on the reddish/orangeish background screens with white, orange and yellow gems. This tool figures out what gem is in a space based on the average color value of the pixels within each square and I think what happens is that the two values on the reddish backgrounds are too close together so it thinks they’re a match. I’m trying to figure out a way to put in a counter so if it makes the same move twice or three times in a row, it abandons it and starts looking for another match. However, not being a professional (or even an amateur) coder, it’s not going easy πŸ™‚

    Usually if I can’t find an immediate swap that’ll snap it out, I’ll just restart the game.

    Like

    1. THis is infuriating me, I have opened Autoblitz and got the hwnd number with spyxx and then i go autoblitz and then enter the code and then go to the game hit play go back to autoblitz and enter and it just says all this crap liek Current Game Board, and it does nothing, later i went and entered the code without hiting play first , what am i doin wrong this is annoying i just want some better points, i only got up to 65,400

      Like

      1. enter the hwnd number AND hit ENTER, THEN go back to the game and click Play – it doesn’t hurt anything. Keep autoblitz in the back ground, the mouse out of the play area.

        Like

  21. Hi i have done everything but only two gems move in the center of the screen and in the autoblitz screen I get the colours in a colum repeated eg. wrb*** not horizontaly as on your video could you please help?

    Like

  22. I keep getting the following error when trying to run the binary.

    “C:\Documents and Settings\Administrator\Desktop\autoblitz-export\export\cygwin-vs60\release-static\bin

    The application has failed to start because the application configuration is incorrect. Reinstalling the application may fix the problem”

    I have installed the MS Visual C++ 2008 SP1 package and UnZipped the file twice but still no joy. Anyone have any ideas? Thanks.

    Like

  23. MS Visual C++ does not seem to be needed I eventualy got autoblitz to work using winspector however it only seemed to work after I changed the resolution to 800 x 600.

    Like

  24. same, i’ve done everything right, but when it comes to the game play, it just keeps switching two gems in the middle of the screen, and doing nothing else. it also doesn’t start a new game after the first is finished…

    any help would be massively appreciated

    Like

  25. Hi I downloaded the winspector tool and keep entering the HWND number in the file i found within the export–> release folder but nothing seems to be happening …
    I have tried to press enter then press enter on the bejeweled game and also did it the opposite way, what am i doing wrong any help would be much appriciated thanks.

    Like

  26. GoodGame

    if anyone needs a complete Image walkthrough, or a video walkthrough i’ll be glad to provide one.

    Like

  27. I beleive the video is still converting, went to the link it says “Starting We are about to convert this video”

    Like

  28. Blueberry, thank you for making this so clear, I realized what i was doing wrong which was not writing in the correct Hwrn number….as I was not able to locate it properly because I was not using the red target box to locate the correct precise window…anyway thank you for all your efforts.

    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