I would like to simulate a natural mouse movement in Java (going from here to there pixel by pixel). To do that I need to know the starting coordinates.
I've found the method event.getX() and event.getY() but I need an event...
How can I know the positions without doing anything (or something not visible)?
Thank you
Try looking at the java.awt.Robot class. It allows you to move the mouse programatically.
If you're using SWT, you might want to look at adding a MouseMoveListener as explained here.