Am I in the right place? -
14-03-2006
Hi,
I want to create a bot for a 2d isometric game, an mmorpg. I havn't seen it attempted, heard people talking about, or found any groups that do this with any mmorpg's let alone this game. I was thinking since it is a 2d isometric game I could get the information such as the current co-ordinates, health etc. by scanning the screen and getting the information that way. I want the bot to move about and do repetitive tasks by itself.
I could do this myself but i'm having trouble with reading the whole screen into a variable and scanning through it. I've tried using CWnd functions to copy the whole screen. This works to the extent that I can say, copy the screen to clipboard or to a bitmap. But I want to be able to copy every pixel on the screen and be able to check each of them for thier colour and then evaluate whether my health is low or where I am.
If someone could point me in the right direction on how to read pixels on the screen for thier colour and sendkeys to application it would be very helpful. I don't even know if i'm approaching on how to do this so any information would be useful.
Thanks
|