There are many practices in plug-in implementation.
Here only talks about simple plug-in methods, in fact, there are many such articles on the Internet. If you are interested, you can find a lot of information on this, this
Just talk about a relatively simple method.
Start the game
2. Get the procedure of the program's access to the common method has FindWindow () to get the handle of the window, further you can get the process ID,
However, for example, in the same game as a link, it is enough to get the handle of the window. (It is worth noting that FindWindow
Inside the parameters, some are somewhat hanging, in the name of the write window, the name of the window you see, is not necessarily
It is a real window name, you can use the tool to complete the name of the window, there are many tools, and the VC debugging tool should be available. )
3. You can get the window DC to get the window chart, then get the map above the window, then analyze the graph
4. Add some of yourself
5. Simulate the method of the keyboard mouse, send information to this window, mouse_event (), setCursorpos () ....
6. The method is simple ~~~.
But: But this is a simple way, there are many games that make the function of the button elves, so direct send messages
It is not good. If you have any questions, there is a solution ~~~~~ Next time:) ----- I haven't had dinner ~~~ Russia!