captnsteve1070
11-25-2009, 01:31 PM
Hi.
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.
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.