Geekzone: technology news, blogs, forums
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.

675 posts

Ultimate Geek
+1 received by user: 184

Topic # 30857 23-Feb-2009 22:31
Send private message

I have been  struggling to modify the Irremote.ini file to allow me to lauch Mediaportal from my remote for a while now but have finally cracked it! Bit of a hack job but it goes.

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)}

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.

Create new topic
259 posts

Ultimate Geek


Reply # 197749 24-Feb-2009 14:20
Send private message

Is anybody able to send me a irremote.ini file complete I am having alot of trouble trying to change these
well getting it to work any way
I had tried a complete file found on MP website but when pressing the green button it just says not found
Any help would be much appreiated

675 posts

Ultimate Geek
+1 received by user: 184

  Reply # 197842 24-Feb-2009 20:44
Send private message

Cannot see how to attach a file here, or in the emails
I had this issue as well for a while.

It seems you need to specify a path name with the file (ie {run(mediaportal.exe)} will not work but (run(c:/foldername/foldername/mediaportal.exe)} works.
It also wont accept spaces in the folder names  so won't run because the spaces in {run(c:/program files/team mediaportal/mediaportal/mediaportal.exe)}. Hence the batch file dumped in  c:/windows.

putting " " about the pathname didn't seem to help either.

If you give me an email address I will send my ini file to you.


259 posts

Ultimate Geek


  Reply # 197956 25-Feb-2009 11:23
Send private message

I have sent a msg through with my email
I tried both combinations of what you have said but it still says it cant find it
my mediaportal is in default path so it should of worked
well hopefully your file will work anyway
Thanks Heaps

Create new topic

Twitter »

Follow us to receive Twitter updates when new discussions are posted in our forums:

Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:

Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:

Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.

Geekzone Live »

Our community of supporters help make Geekzone possible. Click the button below to join them.

Support Geezone on PressPatron

Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.