Hi, I've been using Media Center Studio to customize my menu, but I can't figure out if its possible to add an entry point that goes to a specific TV channel. Anyone know if its possible?
There's an ehshell.exe command switch to launch to livetv.
%systemroot%\ehome\ehshell.exe /homepage:videofullscreen.xml /pushstartpage:true
prior to this you need to set a registry key to the channel number to tune to.
if the top of the my head I cant remember the key. Id tune to live tv , change to channel ### and then quit media center and then search the registry for #### under HKLM\software\microsoft\windows\currentversion\media center and HKCU\software\microsoft\windows\currentversion\media center
You could write a batch file that sets the reg key via reg.exe (http://technet.microsoft.com/en-us/library/bb490984.aspx) and then launches ehshell to live tv with the above command.
Thanks for the response Mike. A change to the registry may be over my head to script, also I'd like it to work with extenders. Seems like since we can use this entry point to go to live tv:
C:\Windows\ehome\ehshell.exe "/mcesuperbar://tv?live=true"
That we should be able to add on a piece and change the channel, something like this:
C:\Windows\ehome\ehshell.exe "/mcesuperbar://tv?live=true&ch=402"
The reason I'm looking to do this is that I get radio stations via my cable provider, so I'd like to add entry points under my music menu like "Country" or "Hits" or "Rock" that go directly to that channel.
Anyone have any ideas? Microsoft, is there more info you can share on the eshell switches?
OK, so I got some time to give Mike's idea a shot, but I need some help. I looked in the registry and found the keys that MC was updating after a channel change - they're called "_tvChannel" and "_tvChannelID".
Then I created a batch file with these commands:
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Media Center\Settings\VideoSettings" /v "_tvChannel" /d "257" /freg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Media Center\Settings\VideoSettings" /v "_tvChannelID" /d "7881299373772685" /f%systemroot%\ehome\ehshell.exe /homepage:videofullscreen.xml /pushstartpage:true
The batch file worked because afterward the registry reflects the changes, and MC opens to live tv.
But it's still opening to the channel that I was on before the changes. And when I close MC, the keys revert to the prior values.
Sure seems like I'm close, anyone have any suggestions?
by the way, if anyone is curious why i want to do this - idea is that so many content providers also provide music channels, I'd like to create menu items under the music menu strip for various genres, like rock, country, etc. that navigate directly to the channel.
Anyway, thanks in advance for any ideas, or help with the registry approach...
Scratch that, Mike's approach DOES WORK. Turns out all of the extenders had to be turned off so that the eshell.exe process shut down before trying the commands.
However, based on that, I don't think the approach will work for what I'm trying to accomplish.
If anyone thinks of something let me know.