|
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
|
|||
|
|||
Starting Fullscreen from Shortcut?
Hello Sagers...
I have a bit of a problem. As many know, there seems to be a little hiccup in Sage which causes recordings to stutter. One of the known workarounds is to run Sage in the "AboveNormal" priority. This can be accomplished by starting Sage, and adjusting the priority in the (Windows) Task Manager, *OR* by using some clever batch files and startup commands. Here's the goal: Have Sage start at bootup in AboveNormal priority. Here's the problem: When you tell Sage to automatically startup in fullscreen mode, Sage writes out a line to the registry HKLU/Run area launching the program. This line is overwritten each time you cycle through Sage, rendering any changes to it useless. When you use the AboveNormal shortcuts/batch files which are available, Sage only starts in Windowed mode - even when specifying "Maximized" or "Full Screen" in the shortcut properties. There appears to be no Sage command line option for full screen starting. Things I've played with: Inside sage.propterties... ui/startup_type = 0 --> No autostartup. No fullscreen. ui/startup_type = 1 --> Autostart fullscreen. Always adds the registry key. ui/startup_type = 2 --> Autostart in tray. Always adds the registry key. Using startup type 1, I can use the -startup commandline flag to launch from a shortcut fullscreen AND get my priority settings right, BUT the instant I reboot, the uneditable registry key takes over and my shortcut startup is beaten to the punch. What I need is a method to use a shortcut (in the Start Menu\Startup directory) to run SageTV using the known AboveNormal priority workarounds. Any takers? Sage folks - this is the ideal reason to put in a fullscreen commandline flag! Last edited by greggerm; 02-12-2005 at 12:30 PM. |
#2
|
|||
|
|||
Replying to my own message...
I've come up with a satisfactory work around that, while kludgy, works. First off, I disabled Sage from starting on it's own. Then I created an AboveNormal startup batch file. It basically looks like this: Code:
THIS CODE IS IN A FILE CALLED SageTV.bat @echo off cd "\Program Files\Frey Technologies\SageTV" start /AboveNormal SageTV.exe Code:
THIS CODE IS IN A FILE CALLED Event27.bat @echo off cd "\Program Files\Frey Technologies\SageTV" SageTV.exe -event 27 Code:
'THIS CODE IS IN A FILE CALLED SageStart.vbs SecondsToDelay = ".1" ProgramToRun = "C:\Program Files\Frey Technologies\SageTV\SageTV.bat" Wscript.Sleep(SecondsToDelay * 1000) Prog = Chr(34) & ProgramToRun & Chr(34) CreateObject("WScript.Shell").Run(Prog) SecondsToDelay = "32" ProgramToRun = "C:\Program Files\Frey Technologies\SageTV\event27.bat" Wscript.Sleep(SecondsToDelay * 1000) Prog = Chr(34) & ProgramToRun & Chr(34) CreateObject("WScript.Shell").Run(Prog) I placed this script in the Startup menu, and BOOM! Restart the computer and Sage launches windowed and "AbovePriority", and a second or two later it fullscreens itself. Now you may be asking why I went through the trouble? Well, I have my HTPC power down each night around 1:30 AM until 5:30 or so... there's no programs on that early, and it's just a power saving method. When it powers up in the morning, no intervention is required - it will be fullscreen ready to go! ...all because the program now stutters when in "normal" priority... ugh. |
#3
|
||||
|
||||
Sage should start in whatever mode you closed it (windowed or fullscreen).
|
#4
|
|||
|
|||
Testing...
Last edited by greggerm; 02-12-2005 at 04:20 PM. |
#5
|
||||
|
||||
Alt+F4 should close it, or if you exit it from the tray it will return to how you left it also (fullscreen or windowed).
|
#6
|
|||
|
|||
Well, after reading that... I tested it out.
Not surprisingly, it worked. I forced my autoshutdown program to down the computer a few minutes ago while Sage was in fullscreen. Upon reboot, Sage ran via my predefined shortcuts, AND in AboveNormal mode. I also tested with ALT-F4 (worked). Interestingly, I tried using the Windows key to get the start menu and force a reboot. When it came back, it was in windowed mode. Perhaps the interaction with the start menu messed with Sage's ability to remember what mode it was in. I'm happy though - the auto-shutdown program is what will be doing all the work, and it is sucessful with it. Well THAT makes it a whole lot easier to work with! Thanks, Stanger... -Greg Last edited by greggerm; 02-12-2005 at 04:24 PM. |
#7
|
|||
|
|||
Interesting development -
I had my computer power itself down last night, and after the auto power on this morning, we discovered that Sage was up in windowed mode. Sage was "asleep" when the system powered down. It may be an unwanted side effect of my auto-shutdown program, but Sage must have thought it was in windowed mode. Odd. I'll give it a few more nights to see if it's consistantly windowed, or if there was some fluke. I hope I can get some consistancy from it, that way I'll know if I have to drop to my scripts above... |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|