Beispiel #1
0
 def copyMacro(self):
     newMacro = self.createMacro()
     self.macroClipboard = newMacro
     from macro import CURSORMACRO
     if newMacro:
         CURSORMACRO.setMacro('CUSTOMMACRO', newMacro)
     else:
         CURSORMACRO.clear()
 def copyMacro(self):
     newMacro = self.createMacro()
     self.macroClipboard = newMacro
     from macro import CURSORMACRO
     if newMacro:
         CURSORMACRO.setMacro('CUSTOMMACRO',newMacro)
     else:
         CURSORMACRO.clear()
    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)
Beispiel #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)