简体   繁体   中英

How to send (raw) mouse data to an application

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?

The question was answered with the comments by Sinatr. This is to be able to mark the question as answered.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM