码迷,mamicode.com
首页 > 编程语言 > 详细

HackDemo.java==

时间:2014-09-13 00:38:44      阅读:365      评论:0      收藏:0      [点我收藏+]

标签:style   blog   http   color   io   java   ar   2014   div   

 

import java.io.*;

import java.awt.*;

public class HackDemo{

 public static void main(String args[])throws IOException,AWTException{

Runtime rt=Runtime.getRuntime();

Robot robot=new Robot();

 

while(true)

{ robot.mouseMove(500,200); }

 

}

}

 

import java.io.*;
import java.awt.*;
import java.util.Random;
public class HackDemo{
 public static void main(String args[])throws IOException,AWTException{

Runtime rt=Runtime.getRuntime();

Robot robot=new Robot();
Random r=new Random();
while(true){
    int x=r.nextInt(1025);//0-1024
    int y=r.nextInt(769);//0-768
robot.mouseMove(x,y);
}
}
}

 

 

import java.io.*; import java.awt.*;

import java.util.Random;

public class HackDemo{

 public static void main(String args[])throws IOException,AWTException,InterruptedException{

Runtime rt=Runtime.getRuntime();

Robot robot=new Robot();

Random r=new Random();

while(true){  int x=r.nextInt(1025);//0-1024

 int y=r.nextInt(769);//0-768

robot.mouseMove(x,y);

Thread.sleep();

}

}

}

 bubuko.com,布布扣

HackDemo.java==

标签:style   blog   http   color   io   java   ar   2014   div   

原文地址:http://www.cnblogs.com/fantasy12436109/p/3969312.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!