Change mouse buffer using java

I am creating a robot using java, but there is an application that has special and reliable protection, and I can’t execute my robot there, for some reason I don’t know, my robot cannot change the position of the mouse when such an application is running. I use the java.awt.Robot class to change the position of the mouse, but it does not work, so I would like to know if there is another way to change the position of the mouse using java, I thought trying to change the mouse buffer with java (maybe this is not possible, is not it?). I appreciate if you could tell me how to change the position of the mouse using java without using the java.awt.Robot class.

For example, this code changes the mouse position to 500, 500 coordinates:

Robot robot = new Robot();
robot.mouseMove(500, 500);

but it does not work while the application with special protection is working.

Thank.

+5
source share
1 answer

win7 or xp? If win7, try running it as an administrator.

0
source

All Articles