执行鼠标点击不移动光标 [英] Performing a mouse click without moving cursor

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

问题描述

我找不到任何解决办法除由光标类移动光标,点击与 mouse_event 然后移动光标到它的老位置。我与 SendInput 功能发挥,但现在仍然是一个很好的解决方案没有机会。有什么建议?

I couldn't find any solution except moving the cursor by Cursor class, clicking with mouse_event then moving the cursor to its old position. I am playing with SendInput function right now but still no chance for a good solution. Any advice?

推荐答案

您应该使用Win32 API的。
使用pInvoked SendMessage函数从user32.dll中

You should use Win32 API. Use pInvoked SendMessage from user32.dll

pInvoked功能

然后阅读有关鼠标事件:
在MSDN上

Then read about mouse events: Mouse Input on msdn

然后鼠标输入阅读:System事件和鼠标混乱.......

也有大量的信息:
信息

这篇关于执行鼠标点击不移动光标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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