views:

494

answers:

1

Hello all,

I want to create a simplest remote desktop application using p2p communication. I did created one small p2p program in python.

My Idea is-

  • Transmit screenshots of remote computer periodically

  • Transmit keyboard and mouse events wrapped in xml to remote desktop.

Problem-

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.

OS: windows xp

Ok is there any equivalent of Robot(Java) in python to control mouse and keyboard events

+1  A: 

You can control the keyboard and the mouse with python on Windows by calling the win32 apis: keybd_event and mouse_event thanks to ctypes

luc