From bacfdff6f42da6e28b9709b2bb6983572b6e86ba Mon Sep 17 00:00:00 2001 From: speyrefitte Date: Tue, 15 Jul 2014 17:14:16 +0200 Subject: [PATCH] mistakes in README --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1fce6bb..00c928e 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ Binaries are uses as examples to use rdpy lib. To create an RDP client (this example doesn't need build step of project because it doesn't call bitmap uncompress): ``` from rdpy.protocol.rdp import rdp -class RDPClientQtFactory(rdp.ClientFactory): +class MyRDPFactory(rdp.ClientFactory): def buildObserver(self, controller): class MyObserver(rdp.RDPClientObserver) def __init__(self, controller) @@ -37,7 +37,7 @@ class RDPClientQtFactory(rdp.ClientFactory): def onReady(self): #send r key self._controller.sendKeyEventUnicode(ord(unicode("r".toUtf8(), encoding="UTF-8")), True) - #mouse and click at pixel 200x200 + #mouse move and click at pixel 200x200 self._controller.sendPointerEvent(200, 200, 1, true) return MyObserver(controller) @@ -48,6 +48,10 @@ class RDPClientQtFactory(rdp.ClientFactory): pass def clientConnectionFailed(self, connector, reason): pass + +from twisted.internet import reactor +reactor.connectTCP("XXX.XXX.XXX.XXX", 3389), MyRDPFactory()) +reactor.run() ``` RDP Client