进行遥控应用 [英] Making a remote control aplication
问题描述
对于伴侣的业务,这可能不是最好的方式,但是我正在学习.
for a mate's business, Its probly not the best way of doing it but I'm learning nonetheless.
我从一个示例开始,我发现该示例将屏幕捕获为png并通过套接字发送位图并将其显示在图片框中,效果很好,但是现在我需要能够发送鼠标控制和按键,我有代码触发鼠标左键 向下/向上事件,我可以用代码移动鼠标光标,但是我需要弄清楚如何做其余的事情,例如右键单击和按键,甚至在客户端屏幕太大的情况下甚至缩放图片框.
I started with a sample I found that captures the screen to png and sends the bitmap thru a socket and displays it in a picturebox and that works wonderfully but now I need to be able to send mouse control and key presses I have code that triggers left mouse down/up events and I can move the mouse cursor with code but I need to figure out how to do the rest like right click and key presses and maybe even scaling the picturebox in case the clients screen is too big.
主要是要控制的客户端需要建立连接以避免NAT.
The main thing is the clients end to be controlled needs to establish the connections to avoid NAT's.
推荐答案
使用远程桌面连接(终端服务).您的工具箱中应该有控件.
Use Remote Desktop Connection (Terminal Services). There should be controls in your toolbox.
这篇关于进行遥控应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!