DirectX Game Hook

I am trying to simulate mouse events in a game. The games use DirectInput, so you cannot use SendMessage to send mouse events / keyboard events, so I have to connect to the game.

Also, I do not want to use SendInput / mouse_events, the game should work in 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 mouse events and keyboards (perhaps the main problem).

Thanks in advance.

+6
source share
1 answer

Instead of connecting to the game, you can use GlovePIE , which is a kernel-level input emulator. You can write your own script and then use it. So, you need to send a message with your application to GlovePIE, and it will generate kernel-level input, so this will work in DirectX games.

+2
source

Source: https://habr.com/ru/post/972164/


All Articles