SageTV Community  

Go Back   SageTV Community > SageTV Products > SageTV Software

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 05-06-2009, 10:39 AM
smarty's Avatar
smarty smarty is offline
Sage User
 
Join Date: Sep 2006
Location: Texas
Posts: 59
How to Close SageTV Programtically

During a power outage, I want to be able to programmatically close (not sleep) SageTV.

What commands can I use to do this?

It appears to me that the Windows message commands only sleep or wake Sage, they do not fully close Sage.

Ideas???

Thanks
__________________
Home Automation Setup:
Elk-PowerHome-Xlobby-Insteon-GeoVision-RCS-SageTV!!

Local Sage Machine: NVIDIA nForce 680I LT SLI Motherboard, Intel® Core™2 Quad processor with 8MB cache, 2 GB of PC5400 DDR2, 7.1 channel Integrated audio, gigabit LAN, GeForce 8500GT 512MB PCI-Express video. HDHR and PCI NVidea dual tuner.
Reply With Quote
  #2  
Old 05-06-2009, 10:52 AM
HelenWeathers's Avatar
HelenWeathers HelenWeathers is offline
Sage Icon
 
Join Date: Aug 2008
Location: Miami, Florida
Posts: 1,167
Quote:
Originally Posted by smarty View Post
During a power outage, I want to be able to programmatically close (not sleep) SageTV.

What commands can I use to do this?

It appears to me that the Windows message commands only sleep or wake Sage, they do not fully close Sage.

Ideas???

Thanks
Read this post and the reply below it.
http://forums.freytechnologies.com/f...&postcount=343
__________________
Server: SageTV 7.1.2, Win7/32, Intel DP55KG Mb, Intel QC i5 2.66GHz , 4GB 1333MHz DDR3 SDRAM, 2 AverTVHD Duet for 4 OTA ATSC, 2 DirecTV STBs (HTTP Controlled) w 2 HD PVRs 1.5.7.0 w 5.1, 3 STP-HD300s 20101007-0 firmware. Java v6u29. Plugins: mc2xml EPG, PlayOn, BMT, CommercialDetector+comskip & Gemstone.
Reply With Quote
  #3  
Old 05-06-2009, 11:08 AM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,074
The Exit() API call works from within Sage. If you're looking for a way to shut it down from a command prompt or from another process, send it a WM_QUIT message:

Code:
SendMessage.exe -c SageApp -n SageWin -m 16 0 0
Use "SageClientApp" instead of "SageApp" for SageTV Client.
__________________
-- Greg
Reply With Quote
  #4  
Old 05-06-2009, 12:32 PM
Opus4's Avatar
Opus4 Opus4 is offline
Administrator
 
Join Date: Sep 2003
Location: NJ
Posts: 19,246
I was about to post the exact same SendMessage line earlier, but then I noticed that the log shows that SageTV doesn't exit as cleanly that way vs. exiting via its internal Exit() call. Sending the WM_CLOSE command like that should work OK, but it may leave some temporary files & other such things.

You might be better off sending the WM_CLOSE message to the Java window instead of the application's SageApp/SageWin, but that might only exit SageTV if you have it configured to exit when the X button in the upper right corner is clicked. (I haven't tried this one.)

For service mode, though, you can just use the Windows command to stop the service.

- Andy
__________________
SageTV v7.1.9 is available here.
- Read the SageTV FAQ and PDF User's Guides for 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.
Before you ask: no, I can't say "when".
Reply With Quote
  #5  
Old 05-07-2009, 08:51 AM
smarty's Avatar
smarty smarty is offline
Sage User
 
Join Date: Sep 2006
Location: Texas
Posts: 59
Thanks for this help guys, it is MUCH apprecaited!!!!
__________________
Home Automation Setup:
Elk-PowerHome-Xlobby-Insteon-GeoVision-RCS-SageTV!!

Local Sage Machine: NVIDIA nForce 680I LT SLI Motherboard, Intel® Core™2 Quad processor with 8MB cache, 2 GB of PC5400 DDR2, 7.1 channel Integrated audio, gigabit LAN, GeForce 8500GT 512MB PCI-Express video. HDHR and PCI NVidea dual tuner.
Reply With Quote
  #6  
Old 05-07-2009, 08:51 AM
scat scat is offline
Sage Advanced User
 
Join Date: Jul 2005
Location: Saint Augustine,Fl
Posts: 232
When I want to completly exit Sage using EventGhost I send the keyboard keys ALT+F4
which is the universal keys to exit any Windows program.

Scat
__________________
Server: Intel Core 2 Quad Q6600 2.4GH, GIGABYTE GA-P35-DS3L MB, OCZ Gold Series 3GB, Sapphire Radeon HD 2600XT,
1 250GB Seagate hd (OS), 1 500GB Seagate hd (Music,Pictures), 1 Samsung Spinpoint 1TB hd (Sage recording),
Tuners: 1 Hauppauge PVR 500, 1 Hauppauge HVR-2250
Windows Vista Ultimate 64 bit, Sage 6.6.2.218, Eventghost 0.3.6.1486, Java 1.6.0_11, Harmony 880, USB-UIRT
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
So close... rileydogmi SageTV Software 14 10-29-2008 06:03 PM
Close SageTV GUI Keyboard Shortcut Brent SageTV Software 1 07-20-2008 05:22 PM
I am so close, help! Tilly123 Hardware Support 2 12-17-2007 09:34 AM
Curious, Anyone close to me? traker1001 The SageTV Community 11 12-14-2006 11:07 AM
X -> Minimize instead of Close? kelemvor SageTV Software 1 04-01-2005 05:02 AM


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


Powered by vBulletin® Version 3.7.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright 2003-2005 SageTV, LLC. All rights reserved.