![]() |
|
|||||||
| 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.) |
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
||||
|
||||
|
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. |
|
#2
|
||||
|
||||
|
Quote:
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. |
|
#3
|
||||
|
||||
|
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
__________________
-- Greg |
|
#4
|
||||
|
||||
|
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".
|
|
#5
|
||||
|
||||
|
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. |
|
#6
|
|||
|
|||
|
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 |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
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 |