论坛首页 Java企业应用论坛

周末好玩,用短信控制你的计算机

浏览 28179 次
精华帖 (0) :: 良好帖 (7) :: 新手帖 (0) :: 隐藏帖 (0)
作者 正文
   发表时间:2011-01-10   最后修改:2011-01-20

Snapshot:



 

 

详情见: http://code.google.com/p/cmcccom/

 

    Weekend at home,I have nothing to do..So just make a fun:)

    This is a toy(java) which can control your personal computer by sending a sms to your Fetion Client based on another project 'maplefetion'...At the beginning,I would like to control my television but that needs some hardware supports.
 
Already Implements:
    * Remote reboot or shutdown computer;
    * Remote sending sms to group;
    * Remote record audio on/off;

Doing:
    * Remote opening other application;
    * Remote open/close music player,turn off/on voice;
    * Remote open/close your camera and make a record;
Futrue:
    * Retrive a joke

And I want to practice more interesting thing...

How to use:
    I haven't accomplished it,so you can run Client.java and then login in your Fetion,then sending 't' sms to your Fetion.
 
    Welecom to join me,I really need you!!!!!!!!!!!!!!!!!!!!!

 


      这是一个通过给飞信客户端发送指定短信,实现手机远程控制个人计算机的行为,最初的想法是想控制家里的电视机,但这需要硬件的支持。飞信客户端的实现是依靠maplefetion项目,详情见:http://code.google.com/p/maplefetion/

目前已实现:
    * 远程重启、关闭计算机;
    * 群发短信;
    * 开启/关闭 录音器;

正在实现中:

    * 订阅当地天气服务;

    * 订阅每日黄金金价;

    * 订阅指定日期、地点火车票转让信息;
    * 开启/关闭 任意程序;
    * 随机获取一条笑话;

正在构思中:

    * 自动化鼠标和键盘操作;

 

如何使用(临时):
    运行代码里的Client.java,登录你的飞信,然后发送短信t到你的飞信。或者发送rb到你的飞信则重启机器了。目前还在开发和整理中,还没一个正式的Demo,请见谅。

如何提交BUG:

    请提交到以下地址:

    http://code.google.com/p/cmcccom/issues/list

如何扩展:
    方式一:    

 

public class UnknowAct implements Action{
	private final String cmd="un";
	ActionFactory factory;
	public UnknowAct(ActionFactory factory){
		this.factory=factory;
	}
	public Object call() throws Exception {
		String rs="hello,this is cmcccom project by cjcj";
		return rs;
	}
	public String getCmd() {	
		return cmd;
	}
	public void setHandles(Object... hdls) {
	
	}
}

 

    方式二:继承DefaultBaseAction(线程安全的调用方法)

public class StartupWar3Act extends DefaultBaseAction implements Action{
	public StartupWar3Act(ActionFactory factory) {
		super(factory);
	}
	private final String cmd="war3";
	public Object call0() throws Exception {
		String rs="sucess.";
		return rs;
	}
	public String getCmd() {
		return cmd;
	}
	public void setHandles(Object... hdls) {
	}
}

 

Demo:

http://code.google.com/p/cmcccom/downloads/list

提交给我,或者CVS。

 

安全问题:
    1、首先能发送到机器人上的必须是飞信好友,不然就发送到了手机上,这也是局限性;
    2、我暂时想到的简单的方法是:密码+命令;

 

SVN: http ://cmcccom.googlecode.com/svn/trunk/

 

 

希望有更多的爱好者来扩展更多有趣的应用 如果你有更好的想法和硬件的支持,我们可以合作攒个智能家电的产品。

 

作者:cjcj
Mailto:cj.yangjun@gmail.com

  • 大小: 55.7 KB
   发表时间:2011-01-10  
貌似去年就实现了类似的功能
0 请登录后投票
   发表时间:2011-01-10  
关注一下,好像挺有些意思
0 请登录后投票
   发表时间:2011-01-10  
对哦,根据短信内容进行电脑的操作,岂不是爽哉!
0 请登录后投票
   发表时间:2011-01-11  
好想法~~
0 请登录后投票
   发表时间:2011-01-11  
可以让电脑开机么?有的时候可能需要插插头
0 请登录后投票
   发表时间:2011-01-11  
关注下  貌似这个比较好玩  
0 请登录后投票
   发表时间:2011-01-11  
能让电脑开机不?那才有创意
0 请登录后投票
   发表时间:2011-01-11  
有那么点意思,下载了看看
0 请登录后投票
   发表时间:2011-01-11  
既然飞信能收到短信,前提就是电脑连上网,如果有网络还需要用短信控制吗?
0 请登录后投票
论坛首页 Java企业应用版

跳转论坛:
Global site tag (gtag.js) - Google Analytics