Results 1 to 5 of 5

Thread: Getting your MCE button to open Boxee

  1. #1
    Join Date
    May 2010
    Posts
    5

    Default Getting your MCE button to open Boxee

    I got sick and tired of windows media center running every time I hit the annoying green button.

    I googled like a fiend trying to find a way to usurp the seemingly hardwired functionality of that green button to start my sexy Boxee installation.

    I finally went with the nuclear option:

    1. Took ownership of C:\Windows\ehome\ehshell.exe
    2. Renamed ehshell.exe to ehshellold.exe
    3. Created a batch file named ehshell.bat and put the following into it:
      Code:
      START /d "C:\Program Files (x86)\Boxee\" BOXEE.exe -p
      EXIT
    4. Get a bat to exe converter (search download.com for one)
    5. Put the new ehshell.exe file into the C:\Windows\ehome directory
    6. Profit!


    *Note: I use this on my gyration
    Last edited by Craysh; May 24th, 2010 at 03:04 PM.

  2. #2

    Default

    I did this a while back and has made a world of difference in my enjoyment of using my pc from the remote. I renamed the original ehshell.exe to mediacenter.exe so I could still launch it. I would look into autoit (google it) as you can do so much more than with simple batch files; it also compiles to an exe.
    I have the MCE remote launching boxee, xbmc, hulu desktop and mediacenter with just one script. A little extra logic is in their if the app is already running to take me to the home screen. I supplement all the individual commands to my personal preference with eventghost but the launching of the apps is done with a script that looks something like this...
    This is written with AutoIt.
    -----------------

    Dim $Button

    If $CmdLine[0] = 0 Then $Button = "NONE"
    If $CmdLine[0] > 0 Then $Button = $CmdLine[1]

    If $Button = "NONE" Then
    If ProcessExists ("boxee.exe") Then WinActivate ("BOXEE")
    If ProcessExists ("boxee.exe") Then Send ("h")
    If ProcessExists ("boxee.exe") Then EXIT
    If FileExists ("C:\Program Files\Boxee\BOXEE.exe") Then Run ("C:\Program Files\Boxee\boxee.exe -fs -p")
    If FileExists ("C:\Program Files (x86)\Boxee\BOXEE.exe") Then Run ("C:\Program Files (x86)\Boxee\boxee.exe -fs -p")
    EXIT
    EndIf

    If $Button = "/homepage:RecordedTV.BrowsePage.xml" Then
    If ProcessExists ("boxee.exe") Then WinActivate ("BOXEE")
    If ProcessExists ("boxee.exe") Then Send ("h")
    If ProcessExists ("boxee.exe") Then EXIT
    If FileExists ("C:\Program Files\Boxee\BOXEE.exe") Then Run ("C:\Program Files\Boxee\boxee.exe -fs -p")
    If FileExists ("C:\Program Files (x86)\Boxee\BOXEE.exe") Then Run ("C:\Program Files (x86)\Boxee\boxee.exe -fs -p")
    EXIT
    EndIf

    If $Button = "/homepage:VideoGuide.xml" Then
    If ProcessExists ("xbmc.exe") Then WinActivate ("XBMC Media Center")
    If ProcessExists ("xbmc.exe") Then Send ("{TAB}")
    If ProcessExists ("xbmc.exe") Then EXIT
    If FileExists ("C:\Program Files\xbmc\xbmc.exe") Then Run ("C:\Program Files\xbmc\xbmc.exe -fs", @ScriptDir, @SW_MAXIMIZE)
    If FileExists ("C:\Program Files (x86)\xbmc\xbmc.exe") Then Run ("C:\Program Files (x86)\xbmc\xbmc.exe -fs", @ScriptDir, @SW_MAXIMIZE)
    EXIT
    EndIf

    If $Button = "/homepage:VideoFullscreen.xml" Then
    Run ("c:\windows\ehome\MediaCenter.exe")
    EXIT
    EndIf

    If $Button = "/homepageVDFullscreen.xml" Then
    Run (""%USERPROFILE%\Local Settings\Application Data\HuluDesktop\HuluDesktop.exe"", @ScriptDir, @SW_HIDE)
    EXIT
    EndIf

  3. #3
    Join Date
    May 2010
    Posts
    5

    Default

    Wow, AutoIt looks amazing in general O.o
    Thanks for the info

  4. #4
    Join Date
    Dec 2010
    Posts
    9

    Default

    Quote Originally Posted by Craysh View Post
    I got sick and tired of windows media center running every time I hit the annoying green button.

    I googled like a fiend trying to find a way to usurp the seemingly hardwired functionality of that green button to start my sexy Boxee installation.

    I finally went with the nuclear option:

    1. Took ownership of C:\Windows\ehome\ehshell.exe
    2. Renamed ehshell.exe to ehshellold.exe
    3. Created a batch file named ehshell.bat and put the following into it:
      Code:
      START /d "C:\Program Files (x86)\Boxee\" BOXEE.exe -p
      EXIT
    4. Get a bat to exe converter (search download.com for one)
    5. Put the new ehshell.exe file into the C:\Windows\ehome directory
    6. Profit!


    *Note: I use this on my gyration
    Hi, what OS are you using ? I am using Windows XP Pro but it is not working can you help me (without Windows Media Center)?

  5. #5
    Join Date
    Mar 2010
    Posts
    1,650

    Default

    If you have XP without Media Center you may have to install the IR support files that come with the media center versions of XP including the "roll-ups." If you can't locate that info from Microsoft, the guys at the green button forum should probably be able to point you in the right place to get the IRSYS and other few files required.

    For managing or taking control of your remotes in Windows there are a lot of options available if you don't want/need to rely on the built-in support in specific media applications.

    You can use third-paty remote mapping/action utilities to basically control any/all apps on your system.

    There are quite a few of them available, but some off the top of my head include: Girdir, HiP from Byremote, EventGhost and IRSS (IR Server Suite)
    Manta TR1 IR Receiver for Boxee and HTPC - Use your Universal Remote with Boxee Box or XBMC HTPC, including Raspberry Pi
    Also for Windows, Linux & Mac OS X: Windows Media Center, SageTV, JRiver Media Center, MediaPortal, XBMC, Plex, MythTV, etc.

Similar Threads

  1. Custom Netflix button (sleep button option as well)
    By demoncamber in forum feature requests
    Replies: 1
    Last Post: February 7th, 2012, 01:19 PM
  2. What MCE Remote button for Play/Pause?
    By pcm2a in forum general boxee help
    Replies: 0
    Last Post: November 14th, 2010, 12:26 AM
  3. Determing button ID's for MCE remote
    By vandergus in forum boxee remotes
    Replies: 2
    Last Post: June 2nd, 2010, 01:04 AM
  4. ERROR: XFILE::CFileCache::Open - failed to open source
    By djvj1 in forum boxee for windows help
    Replies: 0
    Last Post: March 13th, 2009, 03:57 AM
  5. Back Button and button contact area
    By inj in forum feature requests
    Replies: 1
    Last Post: November 22nd, 2008, 03:23 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •