handle exoort clipboard
This commit is contained in:
parent
03ef4710fd
commit
35b8384210
@ -44,7 +44,7 @@ class remoteManager():
|
|||||||
self.resetWindowConst = 'RESETWINDOW'
|
self.resetWindowConst = 'RESETWINDOW'
|
||||||
self.setClipboardConst = 'CLIPBOARD '
|
self.setClipboardConst = 'CLIPBOARD '
|
||||||
self.exportConst = 'EXPORT'
|
self.exportConst = 'EXPORT'
|
||||||
self.readClipboard = 'READ'
|
self.setClipboard = 'SET '
|
||||||
# setting controll
|
# setting controll
|
||||||
self.settingConst = 'SETTING '
|
self.settingConst = 'SETTING '
|
||||||
self.setSettingConst = 'SET '
|
self.setSettingConst = 'SET '
|
||||||
@ -114,7 +114,7 @@ class remoteManager():
|
|||||||
# set clipboard
|
# set clipboard
|
||||||
elif upperCommandText.startswith(self.setClipboardConst):
|
elif upperCommandText.startswith(self.setClipboardConst):
|
||||||
parameterText = commandText[len(self.setClipboardConst):]
|
parameterText = commandText[len(self.setClipboardConst):]
|
||||||
self.setClipboard(parameterText)
|
self.handleClipboard(parameterText)
|
||||||
def tempDisableSpeech(self):
|
def tempDisableSpeech(self):
|
||||||
self.env['runtime']['outputManager'].tempDisableSpeech()
|
self.env['runtime']['outputManager'].tempDisableSpeech()
|
||||||
def setVMenu(self, vmenu = ''):
|
def setVMenu(self, vmenu = ''):
|
||||||
@ -154,11 +154,13 @@ class remoteManager():
|
|||||||
upperParameter = parameter.upper()
|
upperParameter = parameter.upper()
|
||||||
# export clipboard
|
# export clipboard
|
||||||
if upperParameter.startswith(self.setSettingConst):
|
if upperParameter.startswith(self.setSettingConst):
|
||||||
self.exportClipboard(parameterText)
|
self.exportClipboard()
|
||||||
# read clipboard
|
# read clipboard
|
||||||
elif upperParameter.startswith(self.readClipboard):
|
elif upperParameter.startswith(self.setClipboard):
|
||||||
|
parameterText = commandText[len(self.setClipboard):]
|
||||||
self.setClipboard(parameterText)
|
self.setClipboard(parameterText)
|
||||||
elif:
|
else:
|
||||||
|
parameterText = commandText[len(self.setClipboard):]
|
||||||
self.setClipboard(parameterText)
|
self.setClipboard(parameterText)
|
||||||
def exportClipboard(self):
|
def exportClipboard(self):
|
||||||
clipboardFilePath = self.env['runtime']['settingsManager'].getSetting('general', 'clipboardExportPath')
|
clipboardFilePath = self.env['runtime']['settingsManager'].getSetting('general', 'clipboardExportPath')
|
||||||
|
Loading…
Reference in New Issue
Block a user