周末好玩,用短信控制你的计算机
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