Page 1 of 1

Macros/Run: what does macroId refer to?

Posted: 30 May 2018, 22:47
by sideshowbond
I'm trying to get macros to run via API however I am kinda unsure what macroId refers to. I tried user number, legend and titan ID, all to no avail. Ideally I'd like to go with user numbers.

"A macro with the id '2' could not be found."
This is the error I'm getting

Re: Macros/Run: what does macroId refer to?

Posted: 31 May 2018, 01:49
by Gregory
This will be the ID of the macro defined in the XML. For example:

Code: Select all

<macro id="Avolites.Macros.PagingNeverHold" name="Set PbPaging to NeverHold">
The macroId would be Avolites.Macros.PagingNeverHold.

Re: Macros/Run: what does macroId refer to?

Posted: 31 May 2018, 18:34
by sideshowbond
aahh, could have actually thought of that - feeling ever so slightly stoopid now. Thanks.

However
titan/script/2/Macros/Run?macroId=Avolites.Macros.Go
is giving me 'true' as a result but doesn't run the macro. Am I missing a step here?