|
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
|
|||
|
|||
How to get type of listener widget ?
The API docs show the method
SetWidgetProperty() to get the property, but I assume this is a typo (since it doesnt work - it complains that this method needs 3 parameters). I tried Code:
type = GetWidgetProperty(widget, "Type") Code:
type = GetWidgetProperty(widget, "Listener Type") Code:
Error in method reflection of GetWidgetProperty of java.lang.ArrayIndexOutOfBoundsException: -1 Any help greatly appreciated. Dirk |
#2
|
||||
|
||||
Purely a guess, since I've never done this: the xml file shows "ListenerEvent" as part of a listener widget. Perhaps try that as the property name?
- Andy
__________________
SageTV Open Source v9 is available. - Read the SageTV FAQ. Older PDF User's Guides mostly still apply: SageTV V7.0 & SageTV Studio v7.1. - Hauppauge remote help: 1) Basics/Extending it 2) Replace it 3) Use it w/o needing focus - HD Extenders: A) FAQs B) URC MX-700 remote setup Note: This is a users' forum; see the Rules. For official tech support fill out a Support Request. |
#3
|
||||
|
||||
From the multi-function stop import hook:
ListenerName=GetWidgetProperty(Listener,"ListenerEvent") So Opus wins the prize!
__________________
Check out my enhancements for Sage in the Sage Customisations and Sageplugins Wiki |
#4
|
|||
|
|||
Quote:
Of course, as Opus said, I also could have just looked at the XML directly ... Thanks ! Dirk |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|