You are not logged in.

#1 2011-05-01 14:38:54

endless_dark
Member
Registered: 2008-09-06
Posts: 29

Get information from screen and finding patterns

Hello! I want to try bot programming for games and stuff.
The main problem I have is that the bot input should be taken from screen, and bot output should be an input (like: move mouse, click, move mouse...)

Taking for example this simple game:
http://www.onlinegames.com/basketball/

The algorithm should be:
1.- Find ball
2.- Find basket
3.- Find clicking place
4.- Click

But I don't know how to get info from screen, finding patterns and writing the output.

Any clue on what should I read about? articles, keywords, whatever.
Thank you very much!


Sorry for my English! smile

Offline

#2 2011-05-02 07:49:24

Malvineous
Member
From: Brisbane, Australia
Registered: 2011-02-03
Posts: 193
Website

Re: Get information from screen and finding patterns

Search for "artificial intelligence" - I think if you were able to solve the first two steps in your proposed algorithm you would become a millionaire :-)

Depending on the crudeness of the graphics in the game, you might be able to just search for a particular pattern of pixels, but it's not going to be fast.  If you're doing this to cheat in games, it would be far simpler and more effective to reverse engineer the communication protocol and send fake events back to the server...

Offline

#3 2011-05-02 14:08:27

endless_dark
Member
Registered: 2008-09-06
Posts: 29

Re: Get information from screen and finding patterns

I found this

http://www.youtube.com/watch?v=kctMU65yxWc

I'm not interested in the game cheating, just in how this kind of bots are programmed.
This one for example uses screen recognition, using some kind of software


Sorry for my English! smile

Offline

Board footer

Powered by FluxBB