I am doing a remote computing project in Java. Using the Robot class I 开发者_如何学编程am able to take the snapshot of client system. But how can I make events like mouse move, mouse click, key press in client system?
Look further down the JavaDocs for the Robot class.
(new Robot()).mouseMove(x, y);
(new Robot()).mousePress( buttons );
(new Robot()).keyPress( keycode );
精彩评论