I tried to reduce two buttons action to one button. For example to change two key profiles I need two macro buttons. But I want to do it just one button like toggle button.
So I tried to get a legend from a dummy chase and compare it with conditional strings. I searched Titan 10.1 API page but I could't find a method or property getting a legend from a handle. And I tried toggle structure but when I load Titan, it strip my codes. Any advice welcome!!
Code: Select all
<step condition="Math.IsEqual("Get a Legend from a handle","Latch")">
   Profiles.AssignHandleProfile(handle:"chaseHandleUN=16035",493461)
   Handles.SetSourceHandleFromHandle("chaseHandleUN=1292")
   ActionScript.SetProperty("Handles.PendingLegend", "Instant")
   Handles.SetLegend()
   Handles.ClearSelection()
</step>
<step condition="Math.IsEqual("Get a Legend from a handle","Instant")">
   Profiles.AssignHandleProfile(handle:"chaseHandleUN=16035",493448)
   Handles.SetSourceHandleFromHandle("chaseHandleUN=1292")
   ActionScript.SetProperty("Handles.PendingLegend", "Latch")
   Handles.SetLegend()
   Handles.ClearSelection()
</step>
