Windows Entertainment and Connected Home

How to organize, access and enjoy all of your media in and around your home

Entry point for specific channel?

  • rated by 0 users
  • This post has 5 Replies |
  • 0 Followers
Page 1 of 1 (6 items)
  •  

    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.

    This posting is provided "AS IS" with no warranties, and confers no rights.
  •  

    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".

     Free Image Hosting

    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" /f
    reg 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.

    Free Image Hosting

    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.

Page 1 of 1 (6 items)