hoodnsa.blogg.se

Remote play pc free key twisted
Remote play pc free key twisted




""" Event when network stack is ready to receive or send event """ def onUpdate( self, width, height, x, y, pixelFormat, encoding, data): listenTCP( 3389, MyRDPFactory())įrom rdpy. """ Call when human client close connection """ return MyObserver( controller)įrom twisted.

remote play pc free key twisted remote play pc free key twisted

""" Event call on mouse event x: x position y: y position button: 1, 2, 3, 4 or 5 button isPressed: True if mouse button is pressed """ def onClose( self): """ Event call when a keyboard event is catch in unicode format code: unicode of key isPressed: True if key is down """ def onPointerEvent( self, x, y, button, isPressed): """ 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):

remote play pc free key twisted

#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.






Remote play pc free key twisted