Java Robot class simulating human mouse movement

后端 未结 3 900
离开以前
离开以前 2021-02-08 17:58

I am working on a project about remote control, send conrdinate x and y of cursor from client to server.

But

robot.mouseMove(x,y);

wi

3条回答
  •  不思量自难忘°
    2021-02-08 18:46

    For anyone in the future: I developed a library for Java, that mimics human mouse movement. The noise/jaggedness in movement, sinusoidal arcs, overshooting the position a bit, etc. Plus the library is written with extension and configuration possibilities in mind, so anyone can fine tune it, if the default solution is not matching the case. Available from Maven Central now.

    https://github.com/JoonasVali/NaturalMouseMotion

提交回复
热议问题