Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在用 Java 做一个远程计算项目。使用 Robot 类,我可以拍摄客户端系统的快照。但是如何在客户端系统中进行鼠标移动、鼠标点击、按键等事件呢?
进一步查看 Robot 类的 JavaDocs。
(new Robot()).mouseMove(x, y); (new Robot()).mousePress( buttons ); (new Robot()).keyPress( keycode );