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


KrazyKid

1238 posts

Uber Geek


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

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.


Create new topic
ZALMAN
259 posts

Ultimate Geek

Trusted

#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



KrazyKid

1238 posts

Uber Geek


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

ZALMAN
259 posts

Ultimate Geek

Trusted

  #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





News and reviews »

Air New Zealand Starts AI adoption with OpenAI
Posted 24-Jul-2025 16:00


eero Pro 7 Review
Posted 23-Jul-2025 12:07


BeeStation Plus Review
Posted 21-Jul-2025 14:21


eero Unveils New Wi-Fi 7 Products in New Zealand
Posted 21-Jul-2025 00:01


WiZ Introduces HDMI Sync Box and other Light Devices
Posted 20-Jul-2025 17:32


RedShield Enhances DDoS and Bot Attack Protection
Posted 20-Jul-2025 17:26


Seagate Ships 30TB Drives
Posted 17-Jul-2025 11:24


Oclean AirPump A10 Water Flosser Review
Posted 13-Jul-2025 11:05


Samsung Galaxy Z Fold7: Raising the Bar for Smartphones
Posted 10-Jul-2025 02:01


Samsung Galaxy Z Flip7 Brings New Edge-To-Edge FlexWindow
Posted 10-Jul-2025 02:01


Epson Launches New AM-C550Z WorkForce Enterprise printer
Posted 9-Jul-2025 18:22


Samsung Releases Smart Monitor M9
Posted 9-Jul-2025 17:46


Nearly Half of Older Kiwis Still Write their Passwords on Paper
Posted 9-Jul-2025 08:42


D-Link 4G+ Cat6 Wi-Fi 6 DWR-933M Mobile Hotspot Review
Posted 1-Jul-2025 11:34


Oppo A5 Series Launches With New Levels of Durability
Posted 30-Jun-2025 10:15









Geekzone Live »

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



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.