SageTV Community  

Go Back   SageTV Community > SageTV Products > SageTV Software
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Software Discussion related to the SageTV application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the SageTV software application should be posted here. (Check the descriptions of the other forums; all hardware related questions go in the Hardware Support forum, etc. And, post in the customizations forum instead if any customizations are active.)

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 03-22-2005, 09:10 PM
Tony414's Avatar
Tony414 Tony414 is offline
Sage Advanced User
 
Join Date: Nov 2004
Posts: 75
SageTV command line options??

Hello Everyone!

I would like to know if Sage supports command line options? I have a batch file that will launch Sage in AboveNormal priority. But I would like it to start in the system tray. Can this be done? Here is what I have in the batch file ( start /AboveNormal C:\"Program Files"\"Frey Technologies"\"SageTV"\SageTV.exe ). This starts Sage fine and also changes the priority but it starts in full screen. Or is there a better way? Thanks in advace!!
__________________
Tony

PVR - SageTV V2.2 Maint Release 2 Tuners

Asus P4P800 Dlx, P4 3.0GHZ HT, !GB RAM, 160GB HD, GeForce 5600XT, Plextor PX-TV402U and Hauppage PVR-150, Streamzap Remote, Sony 34" HDTV.
Reply With Quote
  #2  
Old 03-22-2005, 09:23 PM
dnlmln's Avatar
dnlmln dnlmln is offline
Sage User
 
Join Date: Jan 2005
Location: Pincourt, Canada.
Posts: 33
I think this is what you are looking for. It's from the faq at http://www.sage-community.org/index.cgi/wiki/SageFaq.

9.2 Are there any command line paramteters for use with SageTV?

There are a few parameters available:

* -event # Sends the # command message to an already running copy of the same exe. See Controlling SageTV Using Windows Messages for a list of the commnd values. But, if you wish to send command messages to SageTV, I suggest downloading the SendMessage.exe program I wrote that is much smaller (and thus faster loading). It is available as an attachment to this thread: How to control SageTV w/o focus (Hauppauge or other remotes). Update: SendMessage v2 now allow multiple messages to be sent to SageTV, instead of just 1 each time the program is run.
* -dvd This sends the same command to SageTV as using the -event parameter with the DVD command (#74). This could be used to tell SageTV to go to DVD mode as part of DVD autoplay when a DVD is inserted into the drive, I've been told.
* -awake Used to awaken an already running copy of the program that is currently sleeping. I'm not sure how much use this one is, since if you simply run the exe, it will automatically awaken a sleeping program.
* -multi For SageTVClient: allows multiple instances of the client to be started.
* -connect hostname For SageTVClient: causes it to connect to the specified server when it starts.
* -startup When the property "ui/startup_type=2" is also set, this disables the splash screen and loads SageTV in the system tray.
* REGISTER This causes the license key dialog to come up so you can change the key SageTV is using.
Reply With Quote
  #3  
Old 03-23-2005, 09:14 AM
Tony414's Avatar
Tony414 Tony414 is offline
Sage Advanced User
 
Join Date: Nov 2004
Posts: 75
Thats EXACTLY what I'm lookin' for !! Thanks a bunch
__________________
Tony

PVR - SageTV V2.2 Maint Release 2 Tuners

Asus P4P800 Dlx, P4 3.0GHZ HT, !GB RAM, 160GB HD, GeForce 5600XT, Plextor PX-TV402U and Hauppage PVR-150, Streamzap Remote, Sony 34" HDTV.
Reply With Quote
  #4  
Old 03-23-2005, 07:07 PM
Tony414's Avatar
Tony414 Tony414 is offline
Sage Advanced User
 
Join Date: Nov 2004
Posts: 75
Quote:
Originally Posted by dnlmln
I think this is what you are looking for. It's from the faq at http://www.sage-community.org/index.cgi/wiki/SageFaq.



* -startup When the property "ui/startup_type=2" is also set, this disables the splash screen and loads SageTV in the system tray.


Ok. I tried this. It kinda is working. For some reason it loads in the system tray, but on the screen I have a blank black box. Any ideas??
__________________
Tony

PVR - SageTV V2.2 Maint Release 2 Tuners

Asus P4P800 Dlx, P4 3.0GHZ HT, !GB RAM, 160GB HD, GeForce 5600XT, Plextor PX-TV402U and Hauppage PVR-150, Streamzap Remote, Sony 34" HDTV.
Reply With Quote
  #5  
Old 03-23-2005, 09:11 PM
Opus4's Avatar
Opus4 Opus4 is offline
Administrator
 
Join Date: Sep 2003
Location: NJ
Posts: 19,624
I'm not sure if there is a difference between the version you are running vs. my version (I'm using v2.2.7), but I just tried using the command line parameter '-startup' (the params are all in the manual too, btw) and that property for "ui/startup_type=2" (also can be set in Detailed Setup -> Advanced -> Load at Windows Startup) with the result that it loaded into the system tray only w/o any other visible window.

- 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
  #6  
Old 03-24-2005, 08:16 AM
Tony414's Avatar
Tony414 Tony414 is offline
Sage Advanced User
 
Join Date: Nov 2004
Posts: 75
Yes I'm using the same version. The reason I need to do it this way is because it's the only way to get it to start with AboveNormal priority. I did find a good workaround on the forum located here > http://forums.sage.tv/forums/showthread.php?t=10149

He created a couple of batch files and a script, only he wants it to launch in full screen and I want it in the system tray. So i just changed it around and sent the event for "power off" which is 44 in my second batch file.

Is there a way to send more than one event?

Thanks!!
__________________
Tony

PVR - SageTV V2.2 Maint Release 2 Tuners

Asus P4P800 Dlx, P4 3.0GHZ HT, !GB RAM, 160GB HD, GeForce 5600XT, Plextor PX-TV402U and Hauppage PVR-150, Streamzap Remote, Sony 34" HDTV.
Reply With Quote
  #7  
Old 03-24-2005, 10:13 AM
Opus4's Avatar
Opus4 Opus4 is offline
Administrator
 
Join Date: Sep 2003
Location: NJ
Posts: 19,624
Quote:
Originally Posted by Tony414
Is there a way to send more than one event?
Not via the command line parameters. I was going to post a link to my SendMessage utility, but then I remembered it is installed with SageTV now. See Appendix J in the SageTV manual, starting on p. 203 in the v2.2 manual. I'm not sure, but you may have to pause the batch file for a bit, though, to make sure SageTV is loaded before sending it an event command.

- 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
  #8  
Old 03-24-2005, 10:21 AM
Tony414's Avatar
Tony414 Tony414 is offline
Sage Advanced User
 
Join Date: Nov 2004
Posts: 75
Will do! Thanks for the help
__________________
Tony

PVR - SageTV V2.2 Maint Release 2 Tuners

Asus P4P800 Dlx, P4 3.0GHZ HT, !GB RAM, 160GB HD, GeForce 5600XT, Plextor PX-TV402U and Hauppage PVR-150, Streamzap Remote, Sony 34" HDTV.
Reply With Quote
  #9  
Old 03-24-2005, 01:43 PM
yapaus yapaus is offline
New Member
 
Join Date: Mar 2005
Posts: 2
you can download process.exe from this website.
http://www.beyondlogic.org/solutions...rocessutil.htm

Once you've done that, you can change the the priorty of already runnig sagetv process from the command line. (eq: process -p sagetv.exe high).
Reply With Quote
  #10  
Old 03-24-2005, 02:20 PM
Tony414's Avatar
Tony414 Tony414 is offline
Sage Advanced User
 
Join Date: Nov 2004
Posts: 75
I'll give it a try. Thanks
__________________
Tony

PVR - SageTV V2.2 Maint Release 2 Tuners

Asus P4P800 Dlx, P4 3.0GHZ HT, !GB RAM, 160GB HD, GeForce 5600XT, Plextor PX-TV402U and Hauppage PVR-150, Streamzap Remote, Sony 34" HDTV.
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


All times are GMT -6. The time now is 04:24 PM.


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