I'm trying to simulate keypress to my games that use direct input(I guess).
I googled around and I found out the method SendIput().
It work fine if I try to send keypress to notepad.exe but nothing happend when I tried to games.
I checked this site
http://www.elitepvpers.de/forum/war-hacks-bots-cheats-exploits/170258-simulating-keystrokes.html
so I edited my code a little bit but still I don't get any of keypress event from game.
does anybody can help me about this problem?
I used Python but since I imported ctypes module, c/c++ explanation is okay.