SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Studio
Forum Rules FAQs Community Downloads Today's Posts Search

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 08-20-2007, 05:32 PM
Ryand833 Ryand833 is offline
Sage Advanced User
 
Join Date: Oct 2006
Location: St. Louis, MO
Posts: 80
Auto-starting Live TV

I'm trying to write a small modification to automatically go into live tv mode the first time the main menu loads. I'm a newbie at studio, I should add.

Is there something I can check to see if the main menu has been loaded previously in the current session? (I.E. so it doesn't go into live TV automatically every time I go back to the main menu.)
Reply With Quote
  #2  
Old 08-20-2007, 05:42 PM
Opus4's Avatar
Opus4 Opus4 is offline
Administrator
 
Join Date: Sep 2003
Location: NJ
Posts: 19,624
The default STV has examples in the BeforeMenuLoad hook for using AddGlobalContext() calls to add/set global variables to note whether something has already been done. If the global value isn't set already, you could set it & perform the one-time action you want it to do.

- 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.
Reply With Quote
  #3  
Old 08-20-2007, 05:53 PM
Ryand833 Ryand833 is offline
Sage Advanced User
 
Join Date: Oct 2006
Location: St. Louis, MO
Posts: 80
Ok, that works, but I had to do it in the AfterMenuLoad -- it wouldn't work in the BeforeMenuLoad. Is that to be expected?
Reply With Quote
  #4  
Old 08-20-2007, 06:16 PM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
Setting and testing variables should work anywhere. Or are you saying that SageCommand() doesn't work in BeforeMenuLoad? If so, that may be because the listener for that command hasn't been set up yet.
__________________
-- Greg
Reply With Quote
  #5  
Old 08-20-2007, 07:27 PM
Ryand833 Ryand833 is offline
Sage Advanced User
 
Join Date: Oct 2006
Location: St. Louis, MO
Posts: 80
Yeah, the SageCommand didn't work in the BeforeMenuLoad, but I got it to work in AfterMenuLoad.

All is well now, and I thank you both for your help.
Reply With Quote
  #6  
Old 08-20-2007, 08:52 PM
Opus4's Avatar
Opus4 Opus4 is offline
Administrator
 
Join Date: Sep 2003
Location: NJ
Posts: 19,624
What command are you trying to use? You can jump to other menus or reference other code, so maybe that would work better.

... on the other hand, the Main Menu's BeforeMenuLoad hook does a whole bunch of checking various things, so maybe the AfterMenuLoad hook is good anyway, just to prevent any conflicting actions before the menu loads.

- 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.
Reply With Quote
  #7  
Old 08-21-2007, 12:40 AM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
Quote:
Originally Posted by Opus4 View Post
What command are you trying to use?
He's using the "Live TV" command, per my suggestion here. But I suppose that in the special case of invoking live TV on startup, when you can be sure that nothing else is playing already, jumping directly to the OSD screen would work as well.
__________________
-- Greg
Reply With Quote
  #8  
Old 08-21-2007, 08:48 AM
Opus4's Avatar
Opus4 Opus4 is offline
Administrator
 
Join Date: Sep 2003
Location: NJ
Posts: 19,624
OK -- another way to do it would be to link to the code below the Live TV listener in the Main Menu Theme.

- 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.
Reply With Quote
  #9  
Old 09-10-2007, 09:06 PM
lambda379 lambda379 is offline
Sage User
 
Join Date: Aug 2005
Posts: 24
OK, I got the AfterMenuLoad hook to work for both "LiveTV" and go directly to "Archived Videos". But I am still trying to make LiveTV work with the "OK -- another way to do it would be to link to the code below the Live TV listener in the Main Menu Theme." method work. Where/what is the code I should link too? Every thing I try makes SageTV freeze. Maybe I don't understand how listeners work. Thanks
Reply With Quote
  #10  
Old 09-10-2007, 09:23 PM
Opus4's Avatar
Opus4 Opus4 is offline
Administrator
 
Join Date: Sep 2003
Location: NJ
Posts: 19,624
Below the MainMenuTheme is a Live TV listener. If you don't want to use SageCommand() to send the Live TV command, then you could link to the first widget below the Live TV listener -- you wouldn't actually be using the listener at all; you would just be referencing the code under it to perform the same thing: jump to live TV playback.

- 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.
Reply With Quote
Reply


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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto start Live TV mode? Ryand833 SageTV Customizations 2 08-20-2007 02:57 PM
HD audio stuttering only while watching live tv ripple SageTV Software 0 09-09-2006 06:02 PM
Newbie Question: Live TV jbarr SageTV Software 1 08-30-2006 10:01 AM
What happens to Live TV after sched recording starts? ripple SageTV Software 1 11-04-2005 04:31 PM
Slow Starting on Recordings, Live TV and FF & REW roddym4 SageTV Software 17 05-17-2004 09:23 PM


All times are GMT -6. The time now is 10:01 PM.


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