API Playing Macros
Posted: 16 Jan 2020, 21:04
This seems like it should be the simplest thing in the world but I have been killing myself trying to get a JSON message to play macro...
I have tried alsorts of things. The best I have managed is to get a "False" respose to the message. Am I barking up the wrong tree or should I be able to do this? the macros work great via the Show Library but that's the only place.
This is the Macro I'm trying to use
<?xml version="1.0" encoding="UTF-8"?>
<avolites.macros>
<macro id="Avolites.Macros.Cue1">
<name>Cue1</name>
<sequence>
<step>Playbacks.ReleaseAllPlaybacks(Expert.ReleasePlayback.FadeTime, Expert.ReleasePlayback.UseMaster)</step>
<step pause="0.001">Menu.Stack.PushOrReloadMenu("Primary", "Expert.Root.Program")</step>
<step pause="0.001">Menu.InjectInput("OnButtonDown","Connect","",0)</step>
<step pause="0.001">Menu.InjectInput("OnButtonUp","Connect","",0)</step>
<step pause="0.001">Menu.InjectInput("OnButtonDown","PlaybackFlash","Playbacks",0)</step>
<step pause="0.001">Menu.InjectInput("OnButtonUp","PlaybackFlash","Playbacks",0)</step>
</sequence>
</macro>
</avolites.macros>
and this is the message: :4430/titan/script/2/Macros/Run?macroId=Avolites.Macros.Cue1
Many thanks
I have tried alsorts of things. The best I have managed is to get a "False" respose to the message. Am I barking up the wrong tree or should I be able to do this? the macros work great via the Show Library but that's the only place.
This is the Macro I'm trying to use
<?xml version="1.0" encoding="UTF-8"?>
<avolites.macros>
<macro id="Avolites.Macros.Cue1">
<name>Cue1</name>
<sequence>
<step>Playbacks.ReleaseAllPlaybacks(Expert.ReleasePlayback.FadeTime, Expert.ReleasePlayback.UseMaster)</step>
<step pause="0.001">Menu.Stack.PushOrReloadMenu("Primary", "Expert.Root.Program")</step>
<step pause="0.001">Menu.InjectInput("OnButtonDown","Connect","",0)</step>
<step pause="0.001">Menu.InjectInput("OnButtonUp","Connect","",0)</step>
<step pause="0.001">Menu.InjectInput("OnButtonDown","PlaybackFlash","Playbacks",0)</step>
<step pause="0.001">Menu.InjectInput("OnButtonUp","PlaybackFlash","Playbacks",0)</step>
</sequence>
</macro>
</avolites.macros>
and this is the message: :4430/titan/script/2/Macros/Run?macroId=Avolites.Macros.Cue1
Many thanks