Programs Interaction/Window Hook?

Hi guys. I am currently trying to learn as much about WinAPI as I can. But so far my program is very limited to (pressing a button--program will do something.) Hehe. It was exciting four weeks ago, but now I am bore. I am interested in writting a program that can interact with another program.

I been reading some online references about window hook, messages and such. But I am very confuse about it. So I wonder if anyone can point me to the right direction? I don't even know what I am suppose to be looking for less what I need. :(

Ex: I used to play a game called age of empire. There was a bot program that when you run, would allow you to see enermy territory. I want to create a program like that, where would I begin studying? :)...How would one capture the inner working of another program? O_o
You can find everything you need for a WinAPI hook here:

http://msdn.microsoft.com/en-us/library/ms997537.aspx
http://msdn.microsoft.com/en-us/library/ms810627.aspx
and http://msdn.microsoft.com/en-us/library/ms682589.aspx

Creating a hook can be quite complex and maybe it would be more easy to find out more about the Component Object Model of Windows.
You don't need hooks to do IPC.

Google things like "ipc" and "inter process communication".

For things like MMORPGs, you'll also have to learn a lot about networking. Start with TCP/IP.

Dinking with the internals of other programs is a very advanced concept. You have a lot of work ahead to do that.


Why not just write yourself your own game, using SDL or Ogre3D or OpenGL or somesuch? It would be much less frustrating and the learning curve wouldn't be vertical. A good place to start is over at PyGame.
http://www.pygame.org/news.html
Sure, it is in python, but the SDL library is the same. You can do everything just as easily in C or C++.

Good luck!
Topic archived. No new replies allowed.