Don’t think I had broke the security system of facebook and got others personal information. I am not a such a knowledge person
.. Just see the below picture
rb.mousePress(InputEvent.BUTTON1_MASK);
rb.mouseRelease(InputEvent.BUTTON1_MASK);
Using this i can made upto 15,000 clicks. I am using openjdk in ubuntu. I could not break my friend (Ponraj) record. May be bad thread handing mechanism in openjvm.. Or OS dependency i am not go deep with in that… He using some better code than me. I think he used Selenium with this. Need to discuss with him and will update here… And i forget to mention your browser also have some limitation…
Here is the code I used…
import java.awt.AWTException;
import java.awt.Robot;
import java.awt.event.InputEvent;
/**
* @author arul
*/
public class FBClick implements Runnable {
private static Boolean timeout = false;
@SuppressWarnings("deprecation")
public static void main(String d[]) throws InterruptedException, AWTException {
Runnable fb = new FBClick();
Thread th[] = new Thread[2];
Thread.sleep(6000);
for(int i=0; i< th.length; i++) {
th[i] = new Thread(fb);
th[i].start();
}
Long startTime = System.currentTimeMillis();
while(true) {
Long endTime = System.currentTimeMillis();
if(endTime - startTime > 11000) {
for(int i=0; i< th.length; i++) {
th[i].stop();
}
timeout = true;
break;
}
Thread.sleep(3000);
}
System.out.println("The end");
}
@Override
public void run() {
try {
Robot rb = new Robot();
while(!timeout) {
rb.mousePress(InputEvent.BUTTON1_MASK);
rb.mouseRelease(InputEvent.BUTTON1_MASK);
}
} catch (AWTException e) {
e.printStackTrace();
}
}
}
How to use this code..?
Compile and Run this java Code and place your mouse on START Button…
Think like a programmer.. i copied this quote from him…
No related posts.


Hey man. Why go that far and complicate stuff? This works well
public static void main(String ar[]) throws Exception {
Robot r=new Robot();
r.delay(1);
System.out.println(r.getAutoDelay());
long startTime = System.currentTimeMillis();
long endTime = 0l;
int i=0;
do {
endTime = System.currentTimeMillis();
r.mousePress(InputEvent.BUTTON1_MASK);
r.mouseRelease(InputEvent.BUTTON1_MASK);
i++;
}while((endTime-startTime)<=11000);
System.out.println(i);
}
thanks for your code..
That hack is simple… Just 4 lines java code… Dont think too much..
Just remove the Thread in your code. You can get more number of clicks.