From 35cd391e6c840d098d04286ebdaab1820be3dd47 Mon Sep 17 00:00:00 2001 From: chrys Date: Fri, 7 Sep 2018 17:13:48 +0200 Subject: [PATCH] add widow --- src/fenrirscreenreader/core/cursorManager.py | 4 ++++ src/fenrirscreenreader/core/remoteManager.py | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/fenrirscreenreader/core/cursorManager.py b/src/fenrirscreenreader/core/cursorManager.py index 9d31cb56..d6109328 100644 --- a/src/fenrirscreenreader/core/cursorManager.py +++ b/src/fenrirscreenreader/core/cursorManager.py @@ -83,6 +83,10 @@ class cursorManager(): pass return False def setWindowForApplication(self, start = None, end = None): + x1 = 0 + x2 = 0 + y1 = 0 + y2 = 0 if start == None: if not self.env['commandBuffer']['Marks']['1']: return False diff --git a/src/fenrirscreenreader/core/remoteManager.py b/src/fenrirscreenreader/core/remoteManager.py index 80c43e95..a43f91dd 100644 --- a/src/fenrirscreenreader/core/remoteManager.py +++ b/src/fenrirscreenreader/core/remoteManager.py @@ -154,14 +154,13 @@ class remoteManager(): windowList = windowText.split(' ') if len(windowList) < 4: return - print(windowList) start['x'] = int(windowList[0]) start['y'] = int(windowList[1]) end['x'] = int(windowList[2]) end['y'] = int(windowList[3]) self.env['runtime']['cursorManager'].setWindowForApplication(start, end) - except: + except Exception as e: pass def resetWindow(self): self.env['runtime']['cursorManager'].clearWindowForApplication()