远程桌面监控源代码.doc

  1. 1、本文档共47页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
远程桌面监控源代码

局域网中远程桌面监控系统的设计与实现(源代码) 本程序分两大部分,一部分是服务端程序文件,另一部分是客户端程序文件。 ************************** 第一部分,服务端程序文件(运行在被控端)共有四个文件分别是:ContrilInterface、Control、ControlService、ServiceProgram ****************************** ContrilInterface(S)文件内容: package Service; import java.rmi.Remote; import java.rmi.RemoteException; public interface ControlInterface extends Remote { public void controlKeyPress(int keycode) throws RemoteException; // 执行远程主机键盘指定按键的按下动作 public void controlKeyRelease(int keycode) throws RemoteException; // 执行远程主机键盘指定按键的抬起动作 public void controlMouseMove(int x, int y) throws RemoteException; // 执行远程主机的鼠标移动方法 public void controlMousePress(int buttons) throws RemoteException; // 执行远程主机的鼠标指定按键的按下动作 public void controlMouseRelease(int buttons) throws RemoteException; // 执行远程主机的鼠标指定按键的释放动作 public void controlMouseWheel(int wheelAmt) throws RemoteException; // 执行远程主机的鼠标滚轮动作 public void sleepTime(int t) throws RemoteException; // 设定休眠时间,以毫秒为单位 } *************************************** Control的文件内容: /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package Service; import java.awt.Robot; import java.rmi.RemoteException; import java.rmi.server.UnicastRemoteObject; /** * * @author wealthypanda */ public class Control extends UnicastRemoteObject implements ControlInterface{ private Robot robot; //用于调用控制方法 public Control(Robot rb) throws RemoteException{ //构造函数,传递Robot,用于控制鼠标键盘 this.robot=rb; } public void controlKeyPress(int keycode) throws RemoteException { robot.keyPress(keycode); } public void controlKeyRelease(int keycode) throws RemoteException { robot.keyRelease(keycode); } public void controlMouseMove(int x, int y) throws RemoteException { robot.mouseMove(x, y); } public void controlMousePress(int buttons) throws RemoteException { robot

文档评论(0)

sanshengyuan + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档