发送鼠标点击信息 [英] Send mouse Click message

查看:125
本文介绍了发送鼠标点击信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用C ++在不移动鼠标的情况下使鼠标单击事件在某个位置(我的意思是使计算机认为鼠标单击了某个位置)

How we can make mouse click event in a certain position without moving mouse(I mean that make computer think a position is clicked with mouse) with C++

推荐答案



尝试此处提供的解决方案:
http://stackoverflow.com/questions/6688369/simulate-mouse-events- from-c-in-windows [ ^ ]
Hi,

try the solution provided here:
http://stackoverflow.com/questions/6688369/simulate-mouse-events-from-c-in-windows[^]


https://sites.google.com/site/moxingjiazi/jia-li-jia/ru-men-ji-chu/zhu-kong-tai/xi-tong/huashuliandian
https://sites.google.com/site/moxingjiazi/jia-li-jia/ru-men-ji-chu/zhu-kong-tai/xi-tong/huashuliandian


常规Windows环境mouse_event可以单击
但是,在某些游戏中,它们与窗口的消息循环是不同的,
您需要知道他们正在使用DirectX或OpenGL或什么图形引擎,
发送鼠标单击消息的唯一方法.
General windows environment mouse_event can click
However, in some games, their message loop with the windows are different,
You need to know that they are using directx or opengl or what graphics engine,
The only way to send the mouse to click on the message.


这篇关于发送鼠标点击信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆