I want to replace user input (keyboard and mouse) to a game (Quake 2) by an external program for AI purposes. I am able to access the game from an external application, I am able to send keyboard data and mouse keys using Input Manager, but the mouse movement data captured and generated in screen coordinates is not usable. I think I need to (generate and) send raw data to the application. There are several articles about receiving raw mouse data such as Raw input, but I need to send it. How would I do that?
Asked
Active
Viewed 2,045 times
1
-
[This](http://stackoverflow.com/a/18379218/1997232) doesn't work? – Sinatr May 20 '15 at 13:43
-
@Sinatr: Good suggestion. Comes closer to anything I could find. Will check and revert. – jdelange May 20 '15 at 13:53
-
@Sinatr: With that I am indeed able to get mouse movement into the game. Found more examples here [link](http://stackoverflow.com/questions/8339565/send-mouse-keyboard-events). – jdelange May 20 '15 at 16:47
-
possible duplicate of [Simulate mouse move](http://stackoverflow.com/questions/18378142/simulate-mouse-move) – austin wernli May 20 '15 at 16:53
1 Answers
3
The question was answered with the comments by Sinatr. This is to be able to mark the question as answered.

jdelange
- 763
- 2
- 10
- 22
-
This question was not answer then by Sinatr, but rather he posted a duplicate for you to follow. Hence, i think this question should be closed. – austin wernli May 20 '15 at 16:53
-
@austin, I do find the referenced question quite different, for instance I am targeting an external process, but the answer provided applied to my particular case also. – jdelange May 20 '15 at 17:14