I need to send some mouse clicks to a DirectX application covered by other windows while doing stuffs in the foreground. To other applications I uses SendMessage
and it works well, however it won't work with DirectX apps. SendInput
doesn't make sense because it controls your cursor directly and requires the window to be foreground. I want it does that completely background. Is there a way to achieve this? Thanks!
我需要在前台处理东西的同时向其他窗口覆盖的DirectX应用程序发送一些鼠标点击。对于其他应用程序,我使用SendMessage,它运行良好,但它不适用于DirectX应用程序。 SendInput没有意义,因为它直接控制光标并要求窗口为前景。我希望它完全是背景。有没有办法实现这个目标?谢谢!
1 个解决方案
#1
0
Finally I used a completely different method: using ADB provided in Android emulator. Just adb connect
to the port which the emulator used and simplly adb shell input tap [x] [y]
solves my problem.
最后,我使用了一种完全不同的方法:使用Android模拟器中提供的ADB。只需adb连接到模拟器使用的端口,简单的adb shell输入tap [x] [y]解决了我的问题。
#1
0
Finally I used a completely different method: using ADB provided in Android emulator. Just adb connect
to the port which the emulator used and simplly adb shell input tap [x] [y]
solves my problem.
最后,我使用了一种完全不同的方法:使用Android模拟器中提供的ADB。只需adb连接到模拟器使用的端口,简单的adb shell输入tap [x] [y]解决了我的问题。