INTERACT FORUM

More => Old Versions => Media Center 12 (Development Ended) => Topic started by: fitbrit on January 06, 2008, 11:04:40 pm

Title: Question/Feature: Quit MC from Theater View
Post by: fitbrit on January 06, 2008, 11:04:40 pm
I'd love to have a button in Theater view that will exit the view AND quit MC altoghter. Hey, since the exit button brings up a Yes no dialog anyway, could it be modified to give us these options:

-Exiting Theater View to return to display view
-Exiting MC totally
-Cancelling the exit request?
Title: Re: Question/Feature: Quit MC from Theater View
Post by: Robo983 on January 06, 2008, 11:17:54 pm
Are you asking for this to be added as a feature?

I think it can by mapping the command line to a button. Just add a button to theater view. Name it close. Make sure you include the path to your Windows directory not the program files one.

mc12.exe /Close Closes Media Center
Title: Re: Question/Feature: Quit MC from Theater View
Post by: fitbrit on January 07, 2008, 12:10:21 am
Thanks robo.

I was asking for it to be a feature, or asking how to do it- whichever one applied. I haven't used the command line at all in MC, so I'll try out what you said.
Title: Re: Question/Feature: Quit MC from Theater View
Post by: Robo983 on January 07, 2008, 12:36:58 am
np, I tried it out to make sure I didn't give bad advice. Add a program button with the following parameter. Same it "Close" and it closes MC with out any prompts.

C:\WINDOWS\system32\MC12.exe /Close
Title: Re: Question/Feature: Quit MC from Theater View
Post by: benn600 on January 07, 2008, 01:25:39 am
Here's a batch script that will close MC, wait ~8 seconds, and start it again:

mc12.exe /Close
ping -n 8 127.0.0.1 >NUL
mc12.exe

Nice for allowing users to refresh MC (such as in a HTPC use when using server database).
Title: Re: Question/Feature: Quit MC from Theater View
Post by: fitbrit on January 07, 2008, 09:50:40 am
Thanks Benn

I might use that, slightly modified. When I start up my HTPC I have to log into my NAS, which also has 2 attached USB drives. MC won't let me log into the NAS or those drives by going into drives and devices in standard view. So sometimes, when I forget to log into the drives before I launch MC (straight into Theater View), many of my media are not available. I then have to close MC, log onto the drive and restart MC. If I increase the time between close and restart to 20 seconds, I might use your script in addition to Robo's for simply closing the program.
Title: Re: Question/Feature: Quit MC from Theater View
Post by: benn600 on January 07, 2008, 11:12:58 am
I had MC automatically starting when the system logged on.  Unfortunately, the server drive was not quite ready yet and MC would always default to the default library and I'd have to manually fix it.

So my solution was to make my remote start MC when MC is not running (or in focus).  Which works perfectly!  This is true on my desktop + htpc multipurpose machines, too.  If the user is working on the computer and suddenly wants to enjoy a fine movie, they just push a button and 5 seconds later they're in theater view.  I even have it setup to go to the second monitor in many cases so a larger TV also attached can be used, for instance.
Title: Re: Question/Feature: Quit MC from Theater View
Post by: eric.w on January 21, 2008, 09:56:11 am
Can someone point me in the good direction about how and where to add such a button in theater view mode please ?
Title: Re: Question/Feature: Quit MC from Theater View
Post by: gappie on January 21, 2008, 10:04:42 am
Can someone point me in the good direction about how and where to add such a button in theater view mode please ?
go to tools>options>theaterview>items to show. choose add>custom item.
in name put close or something like that.
in type choose program
and in parameter type: MC12.exe /Close

succes
gab
Title: Re: Question/Feature: Quit MC from Theater View
Post by: eric.w on January 21, 2008, 10:19:05 am
wow thats fast !

thanx a lot for your help, it worked !