directinput

DirectX Game hook

僤鯓⒐⒋嵵緔 提交于 2019-12-03 14:38:29
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. Instead of hooking into the game you could use GlovePIE , which is a kernel-level input emulator. You can write down

Simulate XBox Controller Input with Python

只谈情不闲聊 提交于 2019-11-29 03:07:52
问题 I want my python programm to simulate an XBox controller input. Both analog thumb sticks and the on/off buttons if possible. I found topics about simulating Keyboard input with ctypes in python, for example here: Python simulate keydown Is it possible to simulate it similar to an "keydown" on a normal keyboard or mouse? 回答1: In case someone with the same problems will find this thread: I solved the issue with vJoy, pyVJoy and x360ce. vJoy provides an SDK and driver to simulate input devices.

Simulating Keyboard with SendInput API in DirectInput applications

只愿长相守 提交于 2019-11-26 08:16:42
问题 I\'m trying to simulate keyboard commands for a custom game controller application. Because I\'ll need to simulate commands in a DirectInput environment most of the usual methods don\'t work. I know that using a hook would work 100% but I\'m trying to find an easier implementation. I\'ve done quite a bit of searching and found that by using the SendInput API with Scancodes instead of virtual keys should work, but it seems to behave like the key\'s are \"sticking\". I\'ve sent both the KEYDOWN