SHARE
TWEET

Google Basketball Doodle Cheat

nitishsp Aug 7th, 2012 554 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import java.awt.AWTException;
  2. import java.awt.Robot;
  3. import java.awt.event.KeyEvent;
  4.  
  5. /*
  6. * Title: Doodle Cheat 2
  7. * Author: Nitish Parkar
  8. * Date Created: 08/08/2012
  9. * Last Modified: 08/08/2012
  10. *
  11. * Instructions:
  12. * 1. Go to https://www.google.com/doodles/basketball-2012  (don't click the play button)
  13. * 2. Run this code
  14. * 3. Switch to the browser & then hit the play button
  15. */
  16.  
  17. class Doodle1 {
  18.  
  19.     public static void main(String args[]) throws AWTException {
  20.         Robot robot = new Robot();
  21.         int delayIncrement = 300;
  22.         robot.delay(3000);
  23.         for(int i=1;i<20;i++)
  24.         {
  25.             if(i%5==0){
  26.                 delayIncrement += 180;
  27.                 if(delayIncrement == 660){
  28.                     i++;
  29.                 }
  30.             }
  31.             robot.keyPress(KeyEvent.VK_SPACE);
  32.             robot.keyRelease(KeyEvent.VK_SPACE);
  33.             robot.delay(delayIncrement);
  34.             robot.keyPress(KeyEvent.VK_SPACE);
  35.             robot.keyRelease(KeyEvent.VK_SPACE);
  36.  
  37.             robot.delay(950);
  38.  
  39.         }
  40.     }
  41. }
RAW Paste Data
Top