title: How to create simplest p2p remote desktop OR any Robot(Java) equivalent in python
body: <p>I want to create a simplest remote desktop application using p2p communication.
  I did created one small p2p program in python.</p>
  
  <p>My Idea is-</p>
  
  <ul>
  <li><p>Transmit screenshots of remote computer periodically</p></li>
  <li><p>Transmit keyboard and mouse events wrapped in xml to remote desktop.</p></li>
  </ul>
  
  <p>Problem-</p>
  
  <p>I could transmit a information for keyboard and mouse events to remote computer and it will be received. But how should remote program reflect those events to remote machine. I mean how should remote program communicate with operating system. </p>
  
  <p>OS: windows xp</p>
  
  <p>Ok is there any equivalent of <a href="http://java.sun.com/j2se/1.3/docs/api/java/awt/Robot.html" rel="nofollow noreferrer">Robot</a>(Java) in python to control mouse and keyboard events</p>