The issue was that irremote.ini would not allow MP to launch as either it could not find MediaPortal, or there were spaces in the Mediaportal.exe file location pathname.
Using Chris Penrose's code (found on Geekzone) I modified it to launch a batch file that launched Mediaportal in turn. I put the batch file in my c:\Wndows directory and modified the ini file to run the batch file.
the batch files code was:
@echo off
"C:\Program Files\Team MediaPortal\MediaPortal\MediaPortal.exe"
The line changed in Chris's code was line 332. it now reads:
GRNPOWER={run(c:\Windows\launchMP.bat)}{mode(Media Portal)}
Chirs's code is below:
Irremote.ini modification to start Media Portal by pressing the 'green button':
My Setup:
WinTV IR32.exe 2.57.26021 (included on the Hauppauge 5.1 CD supplied with my WinTV Nova-T500 HD PCI card)
Irremote.ini version 2,56,25239,0
The difference from the orignal installed Irremote.ini are as follows (by file line number):
0018 ; [ 3] Repeat delay
0019 RepeatDelay=10
0020 ; [;1] Sound for MessageBeep() to make for each Remote Keystroke
0021 Beep = 1
0022 ; [;0] Sound for MessageBeep() to make when powering down
0023 PowerDownSound = 0
0024 ; [ 1] Use tray as app launcher
0025 MenuLoad=0
0030 ; 29 Is silver remote
0031 ; 30 Is Black 45 button remote
0311 Media Portal=
0332 GRNPOWER={run(MediaPortal.exe)}{mode(Media Portal)}
0361 ; Mod 20081018 from xGRNPOWER={run(C:\windows\ehome\ehshell.exe)}
0362 ; Mod 20081018 from xMCEJEWEL={run(C:\windows\ehome\ehshell.exe)}
1779
1780 ; Added 20081018
1781 [Media Portal]
1782 ;GRNPOWER={ctrl}z{mode(Default)}
1783 ;GO={run(MediaPortal.exe)}
Explanation (by line):
18..31: [Remote] section. Just tweaking the powerup default actions. Optional.
Note: All Irremote.ini comments must be on their own line, as I found out the hard way.
If you place comments at the end of a
setting they will be read and probably muck things up.
311: [Application] section. Declare a 'Media Portal' section exists
332: [Default] section. Redefine the 'green button' to start Media Portal, and use the Media Portal section.
361..362: [Default section. Remove useless definitions.
1779..1783: End of file. Define a [Media Portal] section and redefine buttons when using this section.
Note: The section must be defined but I eventually found that it was unnecessary to redefine any keys.
('green button' goes back to main MP menu. Use cursor to exit / shutdown.