How do I remap keys? (1 Viewer)

etnpnys

Portal Member
January 17, 2006
23
0
Southern California
Home Country
United States of America United States of America
How do I remap the keys on the keyboard to make them do what I want them to do?

e.g.
1. I want the "Backspace" key to go to the previous screen instead of ESC.
2. I ideally would like my Logitech S510 keyboard's media buttons to work inside Media Portal (Play, Pause, Stop, Next Track, Previous Track, etc.) for their applicable function.

TV-Server Version:
MediaPortal Version: 0.2.2.0
MediaPortal Skin: Blue 2 Wide
Windows Version: Windows XP HE w/SP2
CPU Type: Intel Pentium D 3.0Ghz
HDD: Toshiba 160GB
Memory: 1GB DDR2
Motherboard: Intel Express 945 DGCZLR
Motherboard Chipset: 945GCZLR
Motherboard Bios:
Video Card: nVidia GeForce 6600
Video Card Driver: Always current
Sound Card: Integrated Sigmatel Sound
Sound Card AC3: Optical
Sound Card Driver: Always current
1. TV Card:
1. TV Card Type:
1. TV Card Driver:
2. TV Card:
2. TV Card Type:
2. TV Card Driver:
3. TV Card:
3. TV Card Type:
3. TV Card Driver:
4. TV Card:
4. TV Card Type:
4. TV Card Driver:
MPEG2 Video Codec:
MPEG2 Audio Codec:
Satelite/CableTV Provider:
HTPC Case: Evercase ECE1341
Cooling: Thermaltake BTX Fan
Power Supply:
Remote:
TV:
TV - HTPC Connection: VGA
 

etnpnys

Portal Member
January 17, 2006
23
0
Southern California
Home Country
United States of America United States of America
Maybe...

Maybe just open keymap.xml in an editor and play around in there?

I have no aversions to editing the code - I just need to know where to start here...
 

kszabo

MP Donator
  • Premium Supporter
  • December 6, 2007
    796
    86
    Germany, Bayern
    Home Country
    Hungary Hungary
    Remap keyboard shortcut of MP functions

    Hi,

    is there a solution for this problem for MP 1.0? There is no option anymore to edit the mappings (see screenshot). Keymap.xml file is also not existing.

    I would have to remap "previous window" from "esc" to "backspace"! I am not alone with this wish according to my forum search.

    (Reason: the iMon software of my Antec Fusion LCD keeps sending "backspace" command even if I set the back button to "esc", no way to change it. IR Suite does not work with my iMon display.)

    I thank you in advance for any suggestions.
     

    Attachments

    • keyboard_shortcuts.jpg
      keyboard_shortcuts.jpg
      126.7 KB

    dir

    MP Donator
  • Premium Supporter
  • August 30, 2006
    408
    36
    Home Country
    Afghanistan Afghanistan
    kszabo -
    Wrong screen. Try Keys & Sounds, not Keyboard Shortcuts. Go to Global Actions - Previous Menu. Highlight Previous Menu (don't highlight "key"). You can then type the character on the keyboard you want to use and you should see it change in the Key field near the bottom of the screen.

    Unfortunately when I try it using the backspace key, the "esc" changes to "*" so I'm not sure it's accepting it. I'm too chicken to click on OK and lose my current value.

    I too also would like to use backspace rather than ESC for similar reasons.
     

    dir

    MP Donator
  • Premium Supporter
  • August 30, 2006
    408
    36
    Home Country
    Afghanistan Afghanistan
    Anyone happen to know what the backspace key is called in keymap.xml? I'd like to try changing the ESC entry:

    <action>
    <id>10</id>
    <key>esc</key>
    <sound>back.wav</sound>
    <description>Previous Menu</description>
    </action>

    I have a Logitech cordless mouse that has a thumb button. When you push it while browsing in firefox, IE, Explorer etc. it does a page back" . I assumed that the button was mapped to backspace, since it does the same thing. Yet I've discovered that this button doesn't seem to transmit anything outside of these apps. I used a keystroke logger that logs mouse activity, and it doesn't register anything pressed.

    Yet it clearly works!

    There's no additional mouse software that you can install - the Logitech website says that Vista's built-in driver works fine for it - which it does. But since I can't use SetPoint or Intellimouse, I don't have anywhere I can remap this button. The Vista control panel's Mouse options are just basic and don't allow remapping.

    Any idea where I can find out what this button is sending, or what I can stick in the keymap.xml so that it sees it?
     

    surfermc

    Portal Pro
    May 7, 2006
    369
    17
    Dorset
    Home Country
    England England
    If wish to change the action from the 'escape' key to the 'backspace' key this can be achieved by editing the keymap.xml file in the application data folder and changing

    <action>
    <id>10</id>
    <key>esc</key>
    <sound>back.wav</sound>
    <description>Previous Menu</description>
    </action>

    to

    <action>
    <id>10</id>
    <key>backspace</key>
    <sound>back.wav</sound>
    <description>Previous Menu</description>
    </action>
     

    Mashenden

    Portal Pro
    January 13, 2006
    113
    3
    Richmond, VA
    Home Country
    United States of America United States of America
    This post clearly tells how to change "Previous Menu" from ESC to BACKSPACE, but I would like to ask if there is a way to make it so that both ESC and BACKSPACE perform "Previous Menu". Any ideas?

    Also has anyone found a better keyboard shortcut reference? The one I use does not even mention "Previous Menu"
    GeekTonic: Media Portal HTPC Keyboard Cheat Sheet

    [UPDATE]

    I'm so proud - I am getting to the point where I can figure things out for myself :)

    I edited the keymap.xml file in C:\Documents and Settings\All Users\Application Data\Team MediaPortal\MediaPortal\ to include two <id>10 entries, as follows:

    <action>
    <id>10</id>
    <key>esc</key>
    <sound>back.wav</sound>
    <description>Previous Menu</description>
    </action>
    <action>
    <id>10</id>
    <key>backspace</key>
    <sound>back.wav</sound>
    <description>Previous Menu</description>
    </action>

    I still would like to know of a better keyboard shortcut reference if there is one (or have the one I noted edit it to include "Previous Menu").
     

    Users who are viewing this thread

    Top Bottom