![]() |
|
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
|
|||
|
|||
Listener Question
I think I know the answer to this but I have to ask. On other Widgets you can set one of its properties like this:
=GetProperty("properties_file_key", "default") But can you set the "Listener Type" property on a Listener this way? It doesn't appear to work but I thought I might have something wrong like the case or spelling of the event. BobP. |
#2
|
||||
|
||||
Is anyone else doing this to set a listener type?
I never played around with that idea until just now. ![]() Basically: it worked for me to set the listener's type to be equal to some variable or property value, but once set, it didn't catch a new value unless I used F5 on the menu widget to force a reload of the menu. That should mean that it would load the value & use it properly when you restart SageTV after making the change. I'm going to see about getting more details on this. - 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
|
||||
|
||||
The property name is 'ListenerEvent' (seen from browsing the XML STV)
I Get it in my multifunction stop import hook...
__________________
Check out my enhancements for Sage in the Sage Customisations and Sageplugins Wiki ![]() |
#4
|
||||
|
||||
Quote:
- 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. |
#5
|
|||
|
|||
Quote:
Quote:
BobP. |
#6
|
||||
|
||||
If Custom1-5 are the only ones you're interested in, you could just listen for all of them and call PassiveListen on the ones that aren't enabled:
Code:
Listener: Custom1 targetval = "Custom1" if GetProperty("key", ...) Listener: Custom2 targetval = "Custom2" if GetProperty("key", ...) Listener: Custom3 targetval = "Custom3" if GetProperty("key", ...) Listener: Custom4 targetval = "Custom4" if GetProperty("key", ...) Listener: Custom5 targetval = "Custom5" if GetProperty("key", ...) > targetval do your thing > else PassiveListen()
__________________
-- Greg |
#7
|
|||
|
|||
Quote:
BobP. |
#8
|
||||
|
||||
The listener type is definitely cached, so a dynamic value isn't going to work to update the listener automatically. It _might_ work if you have the user restart after making a change, but I'm not entirely sure about that... and users might not like having to restart.
You may want to just stick to the 'standard' way of checking the setting for a limited series of commands, as above. - 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. |
#9
|
|||
|
|||
I was afraid of that. Oh well thanks for checking. Just like to have options.
BobP. |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|