Ejemplo n.º 1
0
 private void testMouseWheelZooming() {
   window.pressKey(VK_CONTROL);
   ImageComponent c = ImageComponents.getActiveIC();
   robot.rotateMouseWheel(c, 2);
   robot.rotateMouseWheel(c, -2);
   window.releaseKey(VK_CONTROL);
 }
Ejemplo n.º 2
0
 private void shiftMoveClickRandom() {
   window.pressKey(VK_SHIFT);
   int x = 200 + random.nextInt(400);
   int y = 200 + random.nextInt(400);
   move(x, y);
   click();
   window.releaseKey(VK_SHIFT);
 }
Ejemplo n.º 3
0
 private void altDrag(int x, int y) {
   window.pressKey(VK_ALT);
   drag(x, y);
   window.releaseKey(VK_ALT);
 }