From 35b8384210ee4e6a9cd85c80f880516aef34678f Mon Sep 17 00:00:00 2001 From: Chrys Date: Tue, 8 Jun 2021 19:01:34 +0200 Subject: [PATCH] handle exoort clipboard --- src/fenrirscreenreader/core/remoteManager.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/fenrirscreenreader/core/remoteManager.py b/src/fenrirscreenreader/core/remoteManager.py index 54a741c1..863152c9 100644 --- a/src/fenrirscreenreader/core/remoteManager.py +++ b/src/fenrirscreenreader/core/remoteManager.py @@ -44,7 +44,7 @@ class remoteManager(): self.resetWindowConst = 'RESETWINDOW' self.setClipboardConst = 'CLIPBOARD ' self.exportConst = 'EXPORT' - self.readClipboard = 'READ' + self.setClipboard = 'SET ' # setting controll self.settingConst = 'SETTING ' self.setSettingConst = 'SET ' @@ -114,7 +114,7 @@ class remoteManager(): # set clipboard elif upperCommandText.startswith(self.setClipboardConst): parameterText = commandText[len(self.setClipboardConst):] - self.setClipboard(parameterText) + self.handleClipboard(parameterText) def tempDisableSpeech(self): self.env['runtime']['outputManager'].tempDisableSpeech() def setVMenu(self, vmenu = ''): @@ -154,11 +154,13 @@ class remoteManager(): upperParameter = parameter.upper() # export clipboard if upperParameter.startswith(self.setSettingConst): - self.exportClipboard(parameterText) + self.exportClipboard() # read clipboard - elif upperParameter.startswith(self.readClipboard): + elif upperParameter.startswith(self.setClipboard): + parameterText = commandText[len(self.setClipboard):] self.setClipboard(parameterText) - elif: + else: + parameterText = commandText[len(self.setClipboard):] self.setClipboard(parameterText) def exportClipboard(self): clipboardFilePath = self.env['runtime']['settingsManager'].getSetting('general', 'clipboardExportPath')