Macro, store command within a command - possible?

BECOME PART OF THE COMMUNITY - Sign up here
  • Code
    Cmd('Store Macro 1 "TheLabel" Command="Set Macro 5 Property Command \"Delete Macro 10\" "')

    Escaping the quotes does not work... is this achievable using only Cmd() / Commandline?

  • 1. You need to create and address the macroline, if you want to set the property "command"

    2. Make sure that the final string sent to the commandline uses nested unescaped single and double quotes.


    e.g. Commandline:

    Store Macro 1.1 Property Command "Set Macro 5.1 Property Command 'Delete Macro 10'"


    e.g. Lua -> Commandline

    (using double square brackets as primary string delimiters [[...]] rather than escaping quotes, to preserve readability.


    Cmd([[Store Macro 1.1 Property Command "Set Macro 5.1 Property Command 'Delete Macro 10'"]])