Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.awt.*;
- import java.awt.event.*;
- public class Email
- {
- public static String letters = "abcdefghijklmnopqrstuvwxyz1234567890@.";
- public static int[] keys =
- {
- KeyEvent.VK_A,KeyEvent.VK_B,KeyEvent.VK_C,
- KeyEvent.VK_D,KeyEvent.VK_E,KeyEvent.VK_F,
- KeyEvent.VK_G,KeyEvent.VK_H,KeyEvent.VK_I,
- KeyEvent.VK_J,KeyEvent.VK_K,KeyEvent.VK_L,
- KeyEvent.VK_M,KeyEvent.VK_N,KeyEvent.VK_O,
- KeyEvent.VK_P,KeyEvent.VK_Q,KeyEvent.VK_R,
- KeyEvent.VK_S,KeyEvent.VK_T,KeyEvent.VK_U,
- KeyEvent.VK_V,KeyEvent.VK_W,KeyEvent.VK_X,
- KeyEvent.VK_Y,KeyEvent.VK_Z,KeyEvent.VK_1,
- KeyEvent.VK_2,KeyEvent.VK_3,KeyEvent.VK_4,
- KeyEvent.VK_5,KeyEvent.VK_6,KeyEvent.VK_7,
- KeyEvent.VK_8,KeyEvent.VK_9,KeyEvent.VK_0,
- KeyEvent.VK_AT,KeyEvent.VK_DECIMAL
- };
- public static int click = InputEvent.BUTTON1_MASK;
- public static void main( String[] args ) throws Exception
- {
- Robot robot = new Robot();
- int curNum = 50; // CHANGE THE NUMBER HERE FOR THE NUMBER AT THE END
- robot.mouseMove( 760, 290 ); // Email
- click( robot );
- type( robot, "rgup123" + curNum );
- robot.mouseMove( 760, 320 );
- click( robot );
- type( robot, "1329515" );
- robot.mouseMove( 760, 370 );
- click( robot );
- type( robot, "1329515" );
- robot.mouseMove( 760, 430 );
- click( robot );
- type( robot, "7039545652" );
- robot.mouseMove( 760, 470 );
- click( robot );
- type( robot, "grishi69@yahoo.com" );
- robot.mouseMove( 760, 530 );
- click( robot );
- type( robot, "Rishi" );
- robot.mouseMove( 760, 560 );
- click( robot );
- type( robot, "Gupta" );
- robot.mouseMove( 760, 620 );
- click( robot );
- type( robot, "22310" );
- robot.mouseMove( 700, 660 );
- click( robot );
- Thread.sleep( 500 );
- robot.mouseMove( 700, 680 );
- click( robot );
- Thread.sleep( 500 );
- robot.mouseMove( 700, 720 );
- click( robot );
- Thread.sleep( 500 );
- robot.mouseMove( 800, 680 );
- click( robot );
- Thread.sleep( 500 );
- robot.mouseMove( 800, 660 );
- click( robot );
- robot.mouseMove( 870, 680 );
- click( robot );
- Thread.sleep( 500 );
- robot.mouseMove( 870, 660 );
- Thread.sleep( 500 );
- robot.mouseWheel( 5 );
- click( robot );
- }
- public static void click( Robot e )
- {
- e.mousePress( click );
- e.mouseRelease( click );
- }
- public static void type( Robot e, String text )
- {
- int pos = 0;
- for( int i = 0; i < text.length(); i++ )
- {
- if( text.charAt( i ) == '@' )
- {
- e.keyPress( KeyEvent.VK_SHIFT );
- e.keyPress( KeyEvent.VK_2 );
- e.keyRelease( KeyEvent.VK_2 );
- e.keyRelease( KeyEvent.VK_SHIFT );
- }
- else
- {
- e.keyPress( keys[ letters.indexOf( text.charAt( i ) ) ] );
- e.keyRelease(keys[ letters.indexOf( text.charAt( i ) ) ] );
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment