View Full Version : Addins using IExecution, Program Sequence

11-25-2009, 02:31 PM

Maybe someone can point me in the right direction, as I am new to writing addins. I would like to pull the currently playing Program name and which sequence is playing within that Program (as shown in the Program Manager). I see “LoadedProgram” and “LoadedSequence” under “IExecution” in the programming guide. I have tried using this to get the “contextHandler”,

Dim obj As Object
If (Interfaces.Available.TryGetValue("IExecution", obj)) Then
m_exection = TryCast(obj, IExecution)
m_executionContent = m_exection.RequestContext(False, True, Nothing)
End If

And then I use the “m_executionContent” in the following lines which is called in a loop so it updated every 30 seconds.

ProgramLabel.Text = m_exection.LoadedProgram(m_executionContent)
SequenceLabel.text = m_exection.LoadedSequence(m_executionContent)

However, I have not been able to get it to display either piece of information. My goal is to have it update my website with the currently paging sequence and I have everything in place except for this one part.

I would greatly appreciate any help someone could provide.

11-25-2009, 02:59 PM
See my earlier post about getting the sequence name.


The programming guide is pretty out of date.

The best way I've found to develop plugins/addins is to use .NET Reflector (http://www.red-gate.com/products/reflector/)to examine an existing plugin and see how it works.

11-25-2009, 03:36 PM
cbell -- great advice! Thanks for posting it!