![]() |
|
SageTV Studio Discussion related to the SageTV Studio application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the Studio software application should be posted here. |
![]() |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
||||
|
||||
ActiveX Com Object
Hi,
I would like to look at using the Girder ActiveX Com Object so that when SageTV's status changes such as Play, Pause, Stop, a Media Object loads etc, I generate girder events. The Object is very simple and the only details consist of this which is VBA. Code:
Dim MyGirder As New GIRDERXLib.Girder Dim x As Boolean MyGirder.TriggerEvent "EventString", 18, "1", "2", "3", 0 Modifier is as follows 0=none, 1=down 2=up 4=repeat. Would it possible for someone to help steer me in the right direction for this please. I am assuming, that my bacic steps are allong the lines of. 1. Create a hook (for Example "Play") 2. Apply an action to this hook, would it be Global? 3. AddGlobalContext??! AddGlobalContext(MyGirder, GIRDERXLib.Girder) I am only used to writing scripts in LUA, I have used com objects before but not in the format of Studio / Java. Thanks in advance. Dan |
#2
|
||||
|
||||
You can't call COM directly from Studio or Java. You need some middleware like Jacob to wrap the COM objects up in Java objects that you can then call from Studio.
Another approach would be to write a VB.Net wrapper for your COM objects, and then create a JNI wrapper for the .Net component. There's a sticky post at the top of the forum on how to do the second part of that.
__________________
-- Greg |
#3
|
||||
|
||||
Thanks for the responce, looks like I will stick to ExecuteProcess, the Jacob route is a bit long winded for me.
|
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|