Latest Version:
https://drive.google.com/drive/folders/0B8STIzDFNsyoTjU3UUNkZWlwYlk?resourcekey=0-yQ6xEYttVgAHuEyqEr-OOgVer .14 (9-29-15)
Ver .13 (9-19-2014)
Permanent fix for MC not closing.
Now works with Authentication in media network
All previous user reported issues should be resolved.
Ver .12 (9-18-2014)
Temp workaround for MC not closing on playback stop
Ver .11
Fix path handling for MyMovies
Ver .10
Added ability to pass a path to a DVD or Blu-ray for example, "c:\movies\matrix" it will look for either the video_ts.ifo or index.bdmv files and send those to Media Center.
ver .9
Fixed sometime MC wouldn't have focus after startup
ver .8
Works around a problem with the command "MC17.exe /close" (used to close MC after playback is stopped) closing the MC server if it is selected to run at startup in the MC options.
ver .7
Only change is to make work with Media Center 17. Will default to MC17. You must change "mcVersion" in the file "MCPlayCloseConfig.txt" to 16 for if you are still using MediaCenter 16.
ver .6
Fix standby, shutdown, hibernate options not working.
Added optional argument WMC to force Windows Media Center to the foreground after playback stop
ver.5
Fix possible problem entering fullscreen
ver .4
If mcplayclose was called a second time before it had closed it would crash. Now mcplayclose can be run anytime and if another instance is running it will be closed and playback of the new file will take over.
Fixed sometimes playing now wasn't being replaced with new file. Now playing now is cleared and playback starts of new file.
ver .3
mcplayclose window will now be hidden
ver .2
This version no longer uses the vbs script file. I have completely rewritten it in VB.NET. Use MCPlayClose.exe from now on.
User configurable settings are in the file MCPlayCloseConfig.txt. If you don't have or delete this file the program will automatically recreate it with the default values that should work for most people. See the bottom of this file for these values.
It will now create a MCPlayCloseDebug.txt file.
USAGE:
First argument is required and must be the file path of what you want to play. File path must also be in quotes. All other arguments are optional and do not use quotes.
example: mcplayclose.exe "c:\test.avi"
You can pass a zone number you want to play in. Zone 1 is 1, zone 2 is 2.
example: mcplayclose.exe "c:\test.avi" 1 (Plays in zone 1)
You can pass a view you want to play in: standard, minime, fullscreen or theater
example: mcplayclose.exe "c:\test.avi" fullscreen
You can pass an option to shutdown, standby or hibernate after playback stops and MC closes.
example: mcplayclose.exe "c:\test.avi" 1 fullscreen standby
You can also pass it a playlist that is in MC.
example: mcplayclose.exe "TREEPATH=Playlists\myplaylist" 1 fullscreen standby
User configurable variables within mcplaycloseconfig.txt. Edit with notepad:
mcIP = 127.0.0.1 Set to your MC library server IP address. 127.0.0.1 for most people as this will be run on the local computer.
mcPort = 52199 Set to your MC library server port number. Tools > Options > Media Network > Advanced > TCP Port:
mcUserName = Set to your MC library server username. Tools > Options > Media Network > Authentication
mcPassword = Set to your MC library server password. Tools > Options > Media Network > Authentication
mcAccessKey = Not currently used, value has no affect
mcloadDelay = 2000 Delay between time MC loads and playback starts. Delay values are in milliseconds. 1000 is 1 second.
I use this because I have my soundcard switch modes when MC is opened and I have to delay the start of playback
till the soundcard switches.
serverDelay, stateDelay and shutdownDelay are no longer used.