在Java中,您可以使用Class Robot将鼠标光标定位在屏幕上的任何位置.您可以使用它在每次鼠标移动事件后将鼠标位置移回中心.
//Moves mouse pointer to given screen coordinates.
void mouseMove(int x, int y)
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3105 次 |
| 最近记录: |