How can I get the mptray program to load mp start prog? (1 Viewer)

andyafonso

Portal Member
May 10, 2006
5
0
Just out of curriosity is there a way that I can get mptray to load mp_start program when I press the green button on my mce remote? Reason being is, that I want to have running the programs in conjunction so that when I press my green start button, it not only starts up MP but it also starts it up in full screen on my tv?

I like the mp_start achies the full screen load on my tv but I still want to just use my remote to start it this?

I have an MCE 2005 OEM remote which I purchased on ebay. I'm running windows XP home on an LG LW70 Express laptop with an ati x600 256M video card, 1.5G of Ram.

I thought of using Hip or Girder, but I only to change the green button usage in win xp
 

infinite.loop

Retired Team Member
  • Premium Supporter
  • December 26, 2004
    16,154
    4,133
    127.0.0.1
    Home Country
    Austria Austria
    so you want to start MediaPortal with the green button on your remote, or restore it from tray?
     

    andyafonso

    Portal Member
    May 10, 2006
    5
    0
    ok at the moment I have mp tray which works well cause it runs in the backround and the moment the green button on my mce remote is pressed it launches mp or gains focus if it is already open.

    Also I have mp_start another program that when launched it can start media portal on your secondary monitor in fullscreen, without you having to change any settings.

    Now the problem is when I click the green button it only by default lauches mediaportal.exe in my primary display. I want it however to launch mp_start.exe which will then launch mediaportal.exe in my secondary display which is my television.

    I want this so I can still browse check maill, or do other stuff on my laptop while a movie is playing on my tv screen and yet still have control with my mce remote. I basically want complete automation. I'm not very familiar with programming as I haven't done any programming IT days which was about 7 years ago I have had a look at the source code for mptray, but cant make sense of it.
     

    mPod

    Portal Pro
    January 26, 2005
    2,084
    3
    Berlin
    Home Country
    Germany Germany
    You're aware of the lack of hardware acceleration in DirectX on secondary screen? That's a Microsoft limitation, DirectX is only accelerated on primary screen. So you shouldn't be surprised if some parts of MP are sluggish on your secondary screen. This mp_start thingy is a bit of a dirty hack there and can't be supported officially. Anyway. Maybe the author or some other user has an answer to your questions. :wink:
     

    voy74656

    New Member
    June 19, 2006
    3
    0
    Adelaide
    This is exactly what i'm looking for as well!!!

    I've got Media Portal loading perfectly on my TV in full screen ready to go with mp_start and the start button on the remote loads Media Portal - just need a combination of the 2 and it'd be the ultimate! :D
     

    hal2001

    New Member
    August 25, 2006
    4
    1
    Use mptray to start any program with the green button

    I solved this problem with the following workaround.

    I made an executable called MPPal.exe wich sets a few settings and starts MediaPortal and copied this to the default MediaPortal directory. (using autoit)

    Then I created a directory C:\Program Files\Team MediaPortal\MPTray
    In this directory I copied mptray.exe, mphook.dll (only thing important is that it is not the default dir where MediaPortal.exe is)

    Then I made a second script using autoit that starts my first application.
    example:

    #NoTrayIcon
    Run("C:\Program Files\Team MediaPortal\MediaPortal\MPPal.exe", "C:\Program Files\Team MediaPortal\MediaPortal")
    Exit

    Now comes the dirty part:
    Convert this last script to executable with the same name as the default MediaPortal. Copy this in the new directory where you copied mptray.
    C:\Program Files\Team MediaPortal\MPTray\MediaPortal.exe
    DO NOT COPY THIS TO THE DEFAULT MEDIAPORTAL DIR! :D

    Then I changed the startup location of the mptray.exe in the registry
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\MediaPortal Shell
    modify the directory to "C:\Program Files\Team MediaPortal\MPTray\mptray.exe"

    You can also use the register and unregister functions of mptray.

    Reboot and youre done.
     

    Users who are viewing this thread

    Top Bottom