DirectX Game hook

孤者浪人 提交于 2019-12-21 04:48:58

问题


I'm trying to simulate mouse events in a game. The games uses DirectInput so you can't use SendMessage to send mouse events/keyboard events to it, that's basically why I have to hook in to the game.

Also I don't want to use SendInput/mouse_events, the game must run on the background and make mouse events.

I already managed to make a DLL hook in the game but now the next problem is that I have to make the mouse events and keyboards (probably the main problem).

Thanks in advance.


回答1:


Instead of hooking into the game you could use GlovePIE, which is a kernel-level input emulator. You can write down your own script and then use it. So then you'll need to send message with your applicaton to GlovePIE and it will generate input on Kernel level, so this will work in DirectX games.



来源:https://stackoverflow.com/questions/24735029/directx-game-hook

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!