Ejemplo n.º 1
0
 /** 将鼠标居中 */
 public void mouseCenter() {
   try {
     GraphicsDevice device =
         GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice();
     DisplayMode mode = device.getDisplayMode();
     this.mouseX = this.lastMouseX = (mode.getWidth() / 2) - 10;
     this.mouseY = this.lastMouseY = (mode.getHeight() / 2) - 10;
     LSystem.RO_BOT.mouseMove(this.mouseX, this.mouseY);
   } catch (Exception e) {
   }
 }
Ejemplo n.º 2
0
 /** 鼠标移动 */
 public synchronized void mouseMove(int x, int y) {
   LSystem.RO_BOT.mouseMove(x, y);
 }