Update remoteManager.py

This commit is contained in:
chrys 2019-08-22 14:43:18 +02:00 committed by GitHub
parent 44c75a90ee
commit c7b5134cd5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -66,14 +66,14 @@ class remoteManager():
parameterText = settingsText[len(self.setSettingConst):] parameterText = settingsText[len(self.setSettingConst):]
self.setSettings(parameterText) self.setSettings(parameterText)
# save as setting # save as setting
if upperSettingsText.startswith(self.saveAsSettingConst): elif upperSettingsText.startswith(self.saveAsSettingConst):
parameterText = settingsText[len(self.saveAsSettingConst):] parameterText = settingsText[len(self.saveAsSettingConst):]
self.saveSettings(parameterText) self.saveSettings(parameterText)
# save setting # save setting
if upperSettingsText.startswith(self.saveSettingConst): elif upperSettingsText == self.saveSettingConst:
self.saveSettings() self.saveSettings()
# reset setting # reset setting
if upperSettingsText.startswith(self.resetSettingConst): elif upperSettingsText == self.resetSettingConst:
self.resetSettings() self.resetSettings()
def handleCommandExecution(self, commandText): def handleCommandExecution(self, commandText):
@ -87,30 +87,30 @@ class remoteManager():
parameterText = commandText[len(self.sayConst):] parameterText = commandText[len(self.sayConst):]
self.say(parameterText) self.say(parameterText)
# interrupt # interrupt
if upperCommandText.startswith(self.interruptConst): elif upperCommandText == self.interruptConst:
self.interruptSpeech() self.interruptSpeech()
# temp disable speech # temp disable speech
if upperCommandText.startswith(self.tempDisableSpeechConst): elif upperCommandText == self.tempDisableSpeechConst:
self.tempDisableSpeech() self.tempDisableSpeech()
# set vmenu # set vmenu
if upperCommandText.startswith(self.vmenuConst): elif upperCommandText.startswith(self.vmenuConst):
parameterText = commandText[len(self.vmenuConst):] parameterText = commandText[len(self.vmenuConst):]
self.setVMenu(parameterText) self.setVMenu(parameterText)
# reset vmenu # reset vmenu
if upperCommandText.startswith(self.resetVmenuConst): elif upperCommandText == self.resetVmenuConst:
self.resetVMenu() self.resetVMenu()
# quit fenrir # quit fenrir
if upperCommandText.startswith(self.quitAppConst): elif upperCommandText == self.quitAppConst:
self.quitFenrir() self.quitFenrir()
# define window # define window
if upperCommandText.startswith(self.defineWindowConst): elif upperCommandText.startswith(self.defineWindowConst):
parameterText = commandText[len(self.defineWindowConst):] parameterText = commandText[len(self.defineWindowConst):]
self.defineWindow(parameterText) self.defineWindow(parameterText)
# reset window # reset window
if upperCommandText.startswith(self.resetWindowConst): elif upperCommandText == self.resetWindowConst:
self.resetWindow() self.resetWindow()
# set clipboard # set clipboard
if upperCommandText.startswith(self.setClipboardConst): elif upperCommandText.startswith(self.setClipboardConst):
parameterText = commandText[len(self.setClipboardConst):] parameterText = commandText[len(self.setClipboardConst):]
self.setClipboard(parameterText) self.setClipboard(parameterText)
def tempDisableSpeech(self): def tempDisableSpeech(self):