INTERACT FORUM

More => Old Versions => Media Center 15 (Development Ended) => Topic started by: Dan1970 on April 26, 2010, 08:27:27 am

Title: Connect to Server zone at startup?
Post by: Dan1970 on April 26, 2010, 08:27:27 am
I have one pc running MC15 as Library Server and another one connecting to this library.

I have managed to have the client connect to the server at startup, but I can not see how I also can select the zone from the server at startup? So I start the client, it connects to the server library but it sets playback to the local zone1 whereas I would like to have it set to There: Zone1 at startup. Now I first have to do ctrl-t to toggle the zone.

I have tried deleting the local zone1 but it is back after restart of MC.

Thanks for helping!
Title: Re: Connect to Server zone at startup?
Post by: Mike Noe on April 26, 2010, 08:37:21 am
You could try the command line initiating MC from a batch file, such as:

@echo off MC15.exe /start
@REM potentially some period to wait...or not
@echo off MC15.exe /MCC 10011, X

where X is the zone index (zero-based in MC).  There might be a timing issue depending on how long it takes MC to load and connect to the server and you would have to know the zone index, so if Zone Defs changed, your command line would have to change.

There are other ways (COM automation, etc.)

Edit:  More info here (http://wiki.jrmediacenter.com/index.php/Media_Center_Core_Commands)
Title: Re: Connect to Server zone at startup?
Post by: Dan1970 on April 28, 2010, 06:05:53 am
Thanks, I have the command

mc15.exe /MCC 10011, -1

working to switch to the next zone which is There: Zone1 for me.

Can't figure out what the zone index is though...