Addins using IExecu...
 
Notifications
Clear all

Addins using IExecution, Program Sequence

3 Posts
3 Users
0 Reactions
2,719 Views
Posts: 1
Topic starter
(@captnsteve1070)
New Member
Joined: 18 years ago
[#9089]

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.


2 Replies
cbell
Posts: 462
(@cbell)
Honorable Member
Joined: 18 years ago

See my earlier post about getting the sequence name.

http://www.doityourselfchristmas.com/forums/showthread.php?p=69529#post69529

The programming guide is pretty out of date.

The best way I've found to develop plugins/addins is to use .NET Reflectorto examine an existing plugin and see how it works.


Reply
dirknerkle
Posts: 10310
(@dirknerkle)
Illustrious Member
Joined: 18 years ago

cbell -- great advice! Thanks for posting it!


Reply
Share: