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

 
 
 

Move to New Zealand's best fibre broadband service (affiliate link). Note that to use Quic Broadband you must be comfortable with configuring your own router.
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 »

Logitech Introduces New G522 Gaming Headset
Posted 21-May-2025 19:01


LG Announces New Ultragear OLED Range for 2025
Posted 20-May-2025 16:35


Sandisk Raises the Bar With WD_BLACK SN8100 NVME SSD
Posted 20-May-2025 16:29


Sony Introduces the Next Evolution of Noise Cancelling with the WH-1000XM6
Posted 20-May-2025 16:22


Samsung Reveals Its 2025 Line-up of Home Appliances and AV Solutions
Posted 20-May-2025 16:11


Hisense NZ Unveils Local 2025 ULED Range
Posted 20-May-2025 16:00


Synology Launches BeeStation Plus
Posted 20-May-2025 15:55


New Suunto Run Available in Australia and New Zealand
Posted 13-May-2025 21:00


Cricut Maker 4 Review
Posted 12-May-2025 15:18


Dynabook Launches Ultra-Light Portégé Z40L-N Copilot+PC with Self-Replaceable Battery
Posted 8-May-2025 14:08


Shopify Sidekick Gets a Major Reasoning Upgrade, Plus Free Image Generation
Posted 8-May-2025 14:03


Microsoft Introduces New Surface Copilot+ PCs
Posted 8-May-2025 13:56


D-Link A/NZ launches DWR-933M 4G+ LTE Cat6 Wi-Fi 6 Mobile Hotspot
Posted 8-May-2025 13:49


Synology Expands DiskStation Lineup with DS1825+ and DS1525+
Posted 8-May-2025 13:44


JBL Releases Next Generation Flip 7 and Charge 6
Posted 8-May-2025 13:41









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.