SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Studio

Notices

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.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 04-28-2006, 03:37 PM
danward79's Avatar
danward79 danward79 is offline
Sage Aficionado
 
Join Date: Oct 2003
Location: Brighton & Hove, Sussex UK
Posts: 251
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
TriggerEvent <EventString>, <device num>, <pld1>, <pld2>, <pld3>, <modifier>

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
Reply With Quote
  #2  
Old 04-28-2006, 04:19 PM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
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
Reply With Quote
  #3  
Old 04-30-2006, 02:04 PM
danward79's Avatar
danward79 danward79 is offline
Sage Aficionado
 
Join Date: Oct 2003
Location: Brighton & Hove, Sussex UK
Posts: 251
Thanks for the responce, looks like I will stick to ExecuteProcess, the Jacob route is a bit long winded for me.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 04:18 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.