Moving the Cursor on the Screen

try {
    // These coordinates are screen coordinates
    int xCoord = 500;
    int yCoord = 500;

    // Move the cursor
    Robot robot = new Robot();
    robot.mouseMove(xCoord, yCoord);
} catch (AWTException e) {
}

Comments

5 Feb 2010 - 10:37am by Jitesh Vartak (not verified)

ThankXXXXXXXXXXXXX

19 May 2011 - 4:08am by Raja (not verified)

Thank you.....

24 Jul 2011 - 8:05pm by Anonymous (not verified)

beleza

20 Nov 2011 - 6:26pm by Anonymous (not verified)

The only problem with this is that it calls the mouseMoved?

Post a comment

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image. Ignore spaces and be careful about upper and lower case.