关于桌面共享的概念
我开发了两个小应用程序,通过它们我可以将带有鼠标位置的桌面图片发送到另一个应用程序。另一个应用程序接收图片并在图片框中显示这些图片。
1)所以我想知道如何以非常结构化的方式将所有鼠标键和键盘活动发送到另一个正在发送图片的应用程序。
2)当其他应用程序将收到我的鼠标时键盘活动,然后它们就会正常触发。
所以请告诉我如何发送鼠标和键盘活动非常结构化,另一件事是知道如何以编程方式触发这些鼠标和键盘活动。另一台机器上的键盘活动。我在这里用 C# 开发这个应用程序。所以请给我这个概念,我可以用 C# 对其进行编码。谢谢。
i have developed two a small apps by which i can send desktop picture with mouse position to another apps. another apps receiving the picture and shows those picture on picture box.
1) so i want to know that how could i send my all mouse keys and keyboard activity in very structure way to another apps which is sending picture.
2) when another apps will receive my mouse & keyboard activity then they will fire properly.
so please tell me how could i send mouse & keyboard activity very structure way and another things is to know that how could programmatically fire those mouse & keyboard activity on another machine. here i am developing this apps with c#. so please give me the concept as a result i can code it in c#. thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
通过网络发送图片(或任何数据)相对容易。
拦截和重新创建鼠标和键盘操作是完全不同的。它将涉及大量与 Windows 的低级挂钩,没有现成的库。
您必须精通互操作和编组,也许 C# (.NET) 并不是完成这项工作的最佳工具。
Sending a picture (or any data) over a network is relatively easy.
Intercepting and re-creating Mouse and Keybord actions is entirely different. It will involve a lot of lowlevel hooking into Windows, no ready-to-use libraries.
You will have to be proficient in Interop and Marshaling, and maybe C# (.NET) just isn't the best tool for this job.