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.
source
share