add remote command for set clipboard
This commit is contained in:
parent
a0134fb23e
commit
7e82042661
@ -38,6 +38,7 @@ class remoteManager():
|
|||||||
self.interruptConst = 'INTERRUPT'
|
self.interruptConst = 'INTERRUPT'
|
||||||
self.defineWindowConst = 'WINDOW '
|
self.defineWindowConst = 'WINDOW '
|
||||||
self.resetWindowConst = 'RESETWINDOW'
|
self.resetWindowConst = 'RESETWINDOW'
|
||||||
|
self.setClipboardConst = 'CLIPBOARD '
|
||||||
# setting controll
|
# setting controll
|
||||||
self.settingConst = 'SETTING '
|
self.settingConst = 'SETTING '
|
||||||
self.setSettingConst = 'SET '
|
self.setSettingConst = 'SET '
|
||||||
@ -86,6 +87,12 @@ class remoteManager():
|
|||||||
# reset window
|
# reset window
|
||||||
if upperCommandText.startswith(self.resetWindowConst):
|
if upperCommandText.startswith(self.resetWindowConst):
|
||||||
self.resetWindow()
|
self.resetWindow()
|
||||||
|
# set clipboard
|
||||||
|
if upperCommandText.startswith(self.setClipboardConst):
|
||||||
|
parameterText = commandText[len(self.setClipboardConst):]
|
||||||
|
self.setClipboard(parameterText)
|
||||||
|
def setClipboard(self, text = ''):
|
||||||
|
self.env['runtime']['memoryManager'].addValueToFirstIndex('clipboardHistory', text)
|
||||||
def defineWindow(self, windowText):
|
def defineWindow(self, windowText):
|
||||||
start = {}
|
start = {}
|
||||||
end = {}
|
end = {}
|
||||||
|
Loading…
Reference in New Issue
Block a user