Macros/Run: what does macroId refer to?

Discussion and chat related to developing interfaces to the Titan software using the web API.

Moderator: Moderators

User avatar
sideshowbond
Posts: 182
Joined: 18 Nov 2016, 20:58

Macros/Run: what does macroId refer to?

Postby sideshowbond » 30 May 2018, 22:47

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
User avatar
Gregory
Posts: 1300
Joined: 14 Dec 2007, 15:25
Location: London, United Kingdom
Contact:

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

Postby Gregory » 31 May 2018, 01:49

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.
User avatar
sideshowbond
Posts: 182
Joined: 18 Nov 2016, 20:58

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

Postby sideshowbond » 31 May 2018, 18:34

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?

Who is online

Users browsing this forum: No registered users and 9 guests