|
|
@ -12,6 +12,10 @@ public class PEWCopyTool { |
|
|
|
r = new Robot(); |
|
|
|
r = new Robot(); |
|
|
|
//SHIFT+Down 15 times.
|
|
|
|
//SHIFT+Down 15 times.
|
|
|
|
r.setAutoDelay(25); |
|
|
|
r.setAutoDelay(25); |
|
|
|
|
|
|
|
r.keyPress(KeyEvent.VK_ALT); |
|
|
|
|
|
|
|
r.keyPress(KeyEvent.VK_TAB); |
|
|
|
|
|
|
|
r.keyRelease(KeyEvent.VK_TAB); |
|
|
|
|
|
|
|
r.keyRelease(KeyEvent.VK_ALT); |
|
|
|
r.keyPress(KeyEvent.VK_SHIFT); |
|
|
|
r.keyPress(KeyEvent.VK_SHIFT); |
|
|
|
for (int i=0;i<15;i++) { |
|
|
|
for (int i=0;i<15;i++) { |
|
|
|
r.keyPress(KeyEvent.VK_DOWN); |
|
|
|
r.keyPress(KeyEvent.VK_DOWN); |
|
|
@ -20,6 +24,8 @@ public class PEWCopyTool { |
|
|
|
r.keyRelease(KeyEvent.VK_SHIFT); |
|
|
|
r.keyRelease(KeyEvent.VK_SHIFT); |
|
|
|
r.keyPress(KeyEvent.VK_CONTROL); |
|
|
|
r.keyPress(KeyEvent.VK_CONTROL); |
|
|
|
r.keyPress(KeyEvent.VK_C); |
|
|
|
r.keyPress(KeyEvent.VK_C); |
|
|
|
|
|
|
|
r.keyRelease(KeyEvent.VK_C); |
|
|
|
|
|
|
|
r.keyRelease(KeyEvent.VK_CONTROL); |
|
|
|
} catch (AWTException e) { |
|
|
|
} catch (AWTException e) { |
|
|
|
e.printStackTrace(); |
|
|
|
e.printStackTrace(); |
|
|
|
} |
|
|
|
} |
|
|
|