Pages

Monday, December 28, 2009

HOW TO GET YOUR SYSTEM'S PAGE SIZE

IN WINDOWS

#include
#include

int main(void) {
SYSTEM_INFO si;
GetSystemInfo(&si);

printf("The page size for this system is %u bytes.\n", si.dwPageSize);

return 0;
}


IN LINUX
#include
#include // sysconf(3)

int main(void) {
printf("The page size for this system is %ld bytes.\n",
sysconf(_SC_PAGESIZE)); // _SC_PAGE_SIZE is OK too.

return 0;
}

Saturday, December 5, 2009

Wednesday, December 2, 2009

import java.awt.AWTException;
import java.awt.Robot;
import java.awt.event.InputEvent;
public class MouseClick {
public static void main(String[] args) throws AWTException {
Robot robot = new Robot();
for (int i = 0; i <>
robot.delay(5);
robot.mousePress(InputEvent.BUTTON1_MASK);
robot.mouseRelease(InputEvent.BUTTON1_MASK);
}
}
}


by this code I got 2120 clicks in 30 seconds in ClickFan application on facebook :D
I can't do more because the counter in the application starts again from zero when the speed is very high ...the first comment was from mohammad abd el aziz: "tab ezay ??"