DirectX鼠标单击模拟 [英] directx mouse click simulation
问题描述
如何模拟DirectX应用程序中的鼠标单击? mouse_event和带有WM_LBUTTONDOWN的PostMessage不起作用...
How can I simulate the mouse click in a directx application? mouse_event and PostMessage with WM_LBUTTONDOWN don't work...
因此必须与DirectInput有关
so it must be something to do with the DirectInput
我还没有发现对Google有用的东西,所以您可能知道答案...
I haven't found out nothing useful with google, so you may be knowing the answer...
预先感谢
//更新
我写错了文字,我想要使DirectX应用程序相信鼠标刚刚被单击,但是没有有效地使用鼠标,也没有使用SendInput或mouse_event,而这需要使窗口处于焦点状态
I wrote the text wrongly, what I want is to make the directx app believe that the mouse has just clicked, but without effectively using the mouse and without using SendInput or mouse_event, which need that the window must be focused
推荐答案
尝试 AutoIt 非常适合将点击发送到特定控件.
Try AutoIt it is perfect for sending a click to a particular control. The
ControlClick ( "title", "text", controlID [, button [, clicks [, x [, y ]]]] )
命令可以完全满足您的要求. DirectX控件将检测到点击.
command can do exactly what you want. The directx control will detect the click.
这篇关于DirectX鼠标单击模拟的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!