Merge remote-tracking branch 'origin/master'

This commit is contained in:
daniel goldberg 2016-09-21 12:32:12 +03:00
commit 9ab5b178df
2 changed files with 7 additions and 2 deletions

View File

@ -140,6 +140,11 @@ class KeyPressRDPClient(rdp.RDPClientObserver):
time.sleep(KEYS_SENDER_SLEEP) time.sleep(KEYS_SENDER_SLEEP)
def onReady(self): def onReady(self):
time.sleep(1)
reactor.callFromThread(self._controller.sendKeyEventUnicode, ord('Y'), True)
time.sleep(1)
reactor.callFromThread(self._controller.sendKeyEventUnicode, ord('Y'), False)
time.sleep(1)
pass pass
def onClose(self): def onClose(self):
@ -147,6 +152,7 @@ class KeyPressRDPClient(rdp.RDPClientObserver):
self.closed = True self.closed = True
def onSessionReady(self): def onSessionReady(self):
LOG.debug("Logged in, session is ready for work")
self._last_update = time.time() self._last_update = time.time()
self._keys_thread.start() self._keys_thread.start()

View File

@ -12,5 +12,4 @@ psutil
PyInstaller PyInstaller
ecdsa ecdsa
netifaces netifaces
requests grequests
grequests