开发者

how to make events in clients system

开发者 https://www.devze.com 2023-02-15 05:38 出处:网络
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

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 );
0

精彩评论

暂无评论...
验证码 换一张
取 消