Saturday, April 24, 2010

How to move cursor on screen using java ???  

0 comments

  1. import java.awt.Robot;
  2. public class MovingCursorOnScreen
  3. {
  4. public static void main(String[]args)
  5. {
  6. try
  7. {
  8. int Xcoordinate=10;
  9. int Ycoordinate=50;
  10. Robot a=new Robot();
  11. //this method will move your cursor to the location base on Xcoordinate and Ycoordinate
  12. a.mouseMove(Xcoordinate,Ycoordinate);
  13. }
  14. catch(Exception exception)
  15. {
  16. exception.printStackTrace();
  17. }
  18. }
  19. }

What next?

You can also bookmark this post using your favorite bookmarking service:

Related Posts by Categories



Extension Factory Builder