鼠标指针的创建. [英] Mouse pointer creation.

查看:75
本文介绍了鼠标指针的创建.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尊敬的先生,

我正在进行桌面共享.我需要一种在服务器端捕获鼠标指针坐标并在客户端复制类似鼠标的方法,该鼠标指针应独立于客户端计算机本地鼠标动作.我知道一些API可以获取全局鼠标的屏幕坐标.请给出一些想法来完成此任务,并提供链接,以便我可以找到与此相关的文档.

等待您的回复....在此先谢谢您....

Anand

Dear sir,

I am working on Desktop Sharing. I need a way to capture mouse pointer coordinates at server side and to duplicate similar mouse at client side, this mouse pointer should be independent of client side computer local mouse actions. I know some APIs to get screen coordinates of global mouse. Please give some ideas to get this done and also give links where I can find documentation regarding this.

Awaiting for your reply.... Thanks in advance....

Anand

推荐答案

如果要捕获自己应用程序范围之外的鼠标活动,则需要使用概述 [ GetMouseMovePoints [
If you want to capture the mouse activity outside the bounds of your own application, then you need to use a hook[^]. MSDN has an overview[^] of their usage.

That will tell you when a mouse action (like a click) is performed. To know when the mouse moves, but does not perform an action, you will probably need to poll the mouse location using something like GetMouseMovePoints[^].

-PaulH


您可以使用GetMouseMovePoints [^]查找鼠标位置
You can use GetMouseMovePoints[^] to find mouse location


尊敬的Paul Heil和vivek511,

这将帮助我在捕获方面做.如何在Windows内的远程计算机上使用发件人计算机上获得的此信息创建类似的光标.

Anand
Dear Paul Heil and vivek511,

This will help me to do in capture side. How can I create a similar cursor at remote machine within a windows with this information got at sender machine.

Anand


这篇关于鼠标指针的创建.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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