AutoGram – The machine Vs The machine
4 June 2009Hello, it’s me again, back on the cheating bandwagon 😉 Last time we talked about BioCheat, and now we add another piece of the web-automation jigsaw puzzle: AutoGram.
Please enjoy this HQ stream of deceptive video pixels while I explain this fine new piece of trickery 😉
[youtube=http://www.youtube.com/watch?v=Vc0v9UFLGpM&w=480&h=304&rel=0]
As you can see, this other frustration-driven program lets you climb the ladder of a typical facebook game while drinking coffee or feeding your pet!
So, before starting you need:
- a dictionary file for your language of choice (1 word per line)
- a dictionary file with the names of your facebook friends (for the ‘bonus’ levels)
- a compiler, because I’m not making binary packages this time 😉
- the source code of AutoGram, published here and available as a tar.gz here.
Build it with your favourite compiler (tested on Linux with gcc and on Windows with msvc) or your favourite IDE (you can download QtCreator if you don’t know what an IDE is and click on the autogram.pro project file). Then Run it and embarass your friends 😉
Here is how the program works:
- grabs the screen image and cuts off the 6 images representing the letters. [ScreenCapture.h]
- recognizes each character by comparing the image to the alphabet and picks the match that has less differential energy. (is like xor-ing 2 pictures and computing the energy of that) [Ocr.h]
- performs all the permutations of the characters, to find out all the words that can be made out of the given alphabet. [Scrambler.h]
- validates with a dictionary to filter out unknown words. the dictionary is the “main language dictionary” if the screen is yellow-ish (indicating normal game) or the “bonus game dictionary” if the screen is red-ish (indicating a bonus game, where all the words are picked from the names of your friends). [Scrambler.h]
- injects the words (as keystrokes + return) to the browser window. [InputUtils.h]
- there is a timer-based loop that performs the operations 1-5 while updating the GUI. [WCGame.h contains the logic, AppWidget.h handles the GUI]
If you run AutoGram on a virtual machine, please remember to switch it off after a while! I take no responsability of any score overflow 😉
Again here is the source code, stay tuned for more web automation articles, and enjoy
Very neat