コード例 #1
0
 def copyMacro(self):
     newMacro = self.createMacro()
     self.macroClipboard = newMacro
     from macro import CURSORMACRO
     if newMacro:
         CURSORMACRO.setMacro('CUSTOMMACRO', newMacro)
     else:
         CURSORMACRO.clear()
コード例 #2
0
 def copyMacro(self):
     newMacro = self.createMacro()
     self.macroClipboard = newMacro
     from macro import CURSORMACRO
     if newMacro:
         CURSORMACRO.setMacro('CUSTOMMACRO',newMacro)
     else:
         CURSORMACRO.clear()
コード例 #3
0
    def OnDefaultCommand(self, args):
        hitIndex = int(args[1])
        commandIndex = self.currentPage * 10 + hitIndex
        defaultCommand = self.defaultCommands.get(commandIndex)
        if defaultCommand:
            button = self.commandButtons[hitIndex]
            from macro import CURSORMACRO

            CURSORMACRO.setMacro("CMD", DEFAULTCOMMANDS[defaultCommand], button)
コード例 #4
0
 def OnDefaultCommand(self, args):
     hitIndex = int(args[1])
     commandIndex = self.currentPage * 10 + hitIndex
     defaultCommand = self.defaultCommands.get(commandIndex)
     if defaultCommand:
         button = self.commandButtons[hitIndex]
         from macro import CURSORMACRO
         CURSORMACRO.setMacro("CMD", DEFAULTCOMMANDS[defaultCommand],
                              button)