karthikselva
#SoftwareEngineer #SalesforceDeveloper #RubyonRails #Music

Facebook mouseclicks hack !

I came across a facebook application which counts maximum number of clicks per second and thought of emulating it in java ;)

it is as simple as a crap code … with simple steps Download it from here

step 1:

I wrote a java code which automtes mouseclicks for N times by for loop

the code seems like :

import java.awt.Robot; import java.awt.event.InputEvent; /** * * @author karthik */ public class Main { /** * @param args the command line arguments */ public static void main(String[] args) throws Throwable { Robot r=new Robot();

_ System.out.println(“Hurry up ! you have 10 seconds left “); System.out.println(“This time you must have focused your mouse pointer on START button of facebook appln”); r.delay(10000);_

// TODO code application logic here for(int i=0;i<10000;i++){ r.mousePress(InputEvent.BUTTON1_MASK); System.out.println(“Clicking “+i+”th time “); r.mouseRelease(InputEvent.BUTTON1_MASK); System.out.println(); System.out.println(); }System.out.println(“Congrats ! you did it man  B-)”);

} }

now save the code as Main.java in a directory *c:* in windows or **/home **in linux

step 2:

open **terminal **

compile the java code by running from the location where code is located by

javac Main.java

in the mean time open the facebook application

step 3:

Run the java code now this is critical part

**java Main **

**( you can directly run this  by extracting Main.java.zip from above ) **

you will get a screen saying

“Hurry up ! you have 10 seconds left

This time you must have focused your mouse pointer on START button of facebook appln”

now focus your mouse pointer to the START button of fb appln

you will get a count more than 200 sometimes even 300 clicks per second ( depending on ur jvm )

for more clear details watch the video below :

[youtube=http://www.youtube.com/watch?v=qKdb4E28q6Y]

Thank you :)

Disclaimer :

If you move your mouse button other than start button you will get random results around screen and may hang at times so keep the mouse pointer in **START **button for atleast a minute ;)