daily pastebin goal
67%
SHARE
TWEET

Untitled

a guest Jan 21st, 2019 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import java.awt.*;
  2. import java.awt.event.InputEvent;
  3. import java.awt.event.KeyEvent;
  4.  
  5. public class Main{
  6.     public static void main(String[] args) throws AWTException {
  7.         Robot rbt = new Robot();
  8.  
  9.         rbt.mouseMove(416,997);
  10.         rbt.mousePress(InputEvent.BUTTON1_MASK);
  11.         rbt.mouseRelease(InputEvent.BUTTON1_MASK);
  12.  
  13.         //!
  14.         rbt.keyPress(16);
  15.         rbt.keyPress(49);
  16.         rbt.keyRelease(49);
  17.         rbt.keyRelease(16);
  18.  
  19.         //s
  20.         rbt.keyPress(83);
  21.         rbt.keyRelease(83);
  22.  
  23.         //k
  24.         rbt.keyPress(75);
  25.         rbt.keyRelease(75);
  26.  
  27.         //i
  28.         rbt.keyPress(73);
  29.         rbt.keyRelease(73);
  30.  
  31.         //p
  32.         rbt.keyPress(80);
  33.         rbt.keyRelease(80);
  34.  
  35.         //enter
  36.         rbt.keyPress(KeyEvent.VK_ENTER);
  37.         rbt.keyRelease(KeyEvent.VK_ENTER);
  38.     }
  39. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top