nitishsp

Google Hurdles Doodle Cheat

Aug 7th, 2012
328
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.80 KB | None | 0 0
  1. import java.awt.AWTException;
  2. import java.awt.Robot;
  3. import java.awt.event.KeyEvent;
  4.  
  5. /*
  6. * Title: Doodle Cheat
  7. * Author: Nitish Parkar
  8. * Date Created: 07/08/2012
  9. * Last Modified: 07/08/2012
  10. *
  11. * Instructions:
  12. * 1. Go to https://www.google.com/doodles/hurdles-2012  (don't click the play button)
  13. * 2. Run this code
  14. * 3. Switch to the browser & then hit the play button
  15. *    (you still have to manually jump the hurdles, the program doesn't do it for you)
  16. */
  17.  
  18. class Doodle {
  19.  
  20.     public static void main(String args[]) throws AWTException {
  21.         Robot robot = new Robot();
  22.  
  23.         for(int i=0;i<1000;i++)
  24.                 {
  25.                     robot.keyPress(KeyEvent.VK_LEFT);
  26.                     robot.keyPress(KeyEvent.VK_RIGHT);
  27.                     robot.delay(100);
  28.  
  29.                 }
  30.     }
  31. }
Add Comment
Please, Sign In to add comment