|
Java™ by example!
|
|
|
How do I move the mouse cursor programatically?
From JDK1.3, you can use the robot class, very useful for testing purposes. Following example shows you how to take a desktop screenshot (0,0) --> (200,200) as well as manipulating the mouse cursor. The cursor will traverse diagonally from the top left corner to the bottom right.
Further Information
Author of answer: Joris Van den Bogaert
Comments
Comments to this answer are only viewable by members. Login or become a member!
|
|
|
|
|