title: Java Robot class simulating human mouse movement
body: <p>I am working on a project about remote control, send conrdinate x and y of cursor from client to server. </p>
  
  <p>But </p>
  
  <pre><code>robot.mouseMove(x,y);
  </code></pre>
  
  <p>will only move the cursor to the particular point without moving the cursor form origional point</p>
  
  <p>I have find this simple algorthim to simulate the continuing movement of mouse</p>
  
  <pre><code>for (int i=0; i&lt;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);
  } 
  </code></pre>
  
  <p>But this algorthim still too simple, it just move from one point to other point slowly, which still unlike human behave.</p>
  
  <p>I have read some open soruce code about remote control from web, and I find this project
  <a href="http://code.google.com/p/java-remote-control/">http://code.google.com/p/java-remote-control/</a>
  is using the method call MosueMovement from MouseListener class, which they use to perform the "dragging".</p>
  
  <p>I like to know is any one know the better way of doing this?</p>