I'm trying to simulate keypress to my games that use direct input.
I googled around and I found out the method SendIput()
.
It works fine if I try to send keypress to notepad.exe but nothing happend when I tried to games. I checked this site, and I edited my code a little bit but still I don't get any of keypress event from the game.
Can anybody can help me with this?
I used Python but since I imported ctypes
module, c/c++ explanation is okay.