|
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. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
Can I do this with Studio ???
I would like to have my client shut down the computer when Sage is Closed. I have already added an Exit command on the main menu and would like the machine to shut down when my wife clicks on it.
The machine is used only for PVR use and is set to bring Sage up on boot, if I need to do maintence I can take sage out of FS and exit that way. |
#2
|
||||
|
||||
I don't know a command/utility to use with it, but I would think you could use the ExecuteProcess API call to run a program that shuts down the PC.
- 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. |
#3
|
|||
|
|||
Quote:
Dirk |
#4
|
|||
|
|||
Downloaded nircmd and it looks like it will work (running from command line) now how do I use it in studio. Tried making a new action widget that used executeprocess but it does nothing.
Executeprocess(c:\nircmd.exe, exitwin poweroff,,) Any thoughts ??? |
#5
|
||||
|
||||
Quote:
- 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. |
#6
|
|||
|
|||
That still didn't work, here is the command line.
ExecuteProcess(C:\nircmd.exe, "exitwin poweroff", , ) Appreciate any help... |
#7
|
|||
|
|||
Quote:
ExecuteProcess("C:\\nircmd.exe", args, null, null) That should do it ... Dirk |
#8
|
|||
|
|||
Thanks I'll give that a try tomorrow.. Args should still be in quotes "exitwin poweroff" correct ???
So the full string should be ExecuteProcess("C:\\nircmd.exe", "exitwin poweroff", null, null) Is this correct ??? Last edited by trevorst; 05-12-2006 at 05:55 PM. |
#9
|
|||
|
|||
Quote:
Code:
ExecuteProcess("C:\\nircmd.exe", java_lang_String_split("exitwin,poweroff",","), null, null) Hope this helps, Dirk |
#10
|
|||
|
|||
Thanks for all the replies but I am getting confused...
Could someone please paste the code I should use, that would be a great help. I think you guy's are great to help but a little actual code is such a great help.... Thanks for all your inputs. |
#11
|
||||
|
||||
Quote:
- 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. |
#12
|
||||
|
||||
You might want to turn on the Notify on Errors checkbox in Studio so you can tell if you've entered the expressions incorrectly.
__________________
-- Greg |
#13
|
|||
|
|||
Thanks Dirk your code worked like a charm and helped me understand the syntax a lot better....
Opus my last post crossed with the post from Dirk so I didn't see the code last night. This has really upped the WAF for me.. Thanks for all the help. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|