Java Robot class simulating human mouse movement
问题 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); will only move the cursor to the particular point without moving the cursor form origional point I have find this simple algorthim to simulate the continuing movement of mouse for (int i=0; i<100; i++){ int x = ((end_x * i)/100) + (start_x*(100-i)/100); int y = ((end_y * i)/100) + (start_y*(100-i)/100); robot.mouseMove(x,y); } But this algorthim still too simple,