![]() """ Event call when a keyboard event is catch in scan code format code: scan code of key isPressed: True if key is down """ def onKeyEventUnicode( self, code, isPressed): ![]() """ Call when server is ready to send and receive messages """ def onKeyEventScancode( self, code, isPressed): ![]() connectTCP( "", 3389, MyRDPFactory())įrom rdpy. """ Call when stack is close """ return MyObserver( controller)įrom twisted. """ Windows session is ready """ def onClose( self): """ Notify bitmap update destLeft: xmin position destTop: ymin position destRight: xmax position because RDP can send bitmap with padding destBottom: ymax position because RDP can send bitmap with padding width: width of bitmap height: height of bitmap bitsPerPixel: number of bit per pixel isCompress: use RLE compression data: bitmap data """ def onSessionReady( self): sendPointerEvent( 200, 200, 1, true)ĭef onUpdate( self, destLeft, destTop, destRight, destBottom, width, height, bitsPerPixel, isCompress, data): #mouse move and click at pixel 200x200 self. """ Call when stack is ready """ #send 'r' key self. ClientFactory):ĭef clientConnectionLost( self, connector, reason):ĭef clientConnectionFailed( self, connector, reason):ĭef buildObserver( self, controller, addr):Ĭlass MyObserver( rdp.
0 Comments
Leave a Reply. |