Hey there,
I'm getting tired of duplicating my JS code to define a macro and then define a normal JS function to do exactly the same thing.
Is there a way for me to invoke a macro that I previously defined in JS inside a JS function?
Simple place holder code:
Thank you for your answer!
I'm getting tired of duplicating my JS code to define a macro and then define a normal JS function to do exactly the same thing.
Is there a way for me to invoke a macro that I previously defined in JS inside a JS function?
Simple place holder code:
Macro.add('MySugarCubeMacro', { handler: function() { console.log ("MySugarcubeMacro() invoked!"); } }); window.macro_invoker = function() { // i have no clue how you do this... Macro.Invoke("MySugarCubeMacro"); }
Thank you for your answer!