How to bind a Harmony key with an XBMC action
Here is the procedure for binding a key with an XBMC action. The following example is to bind the key
H to the XBMC command
AudioNextLanguage. This action allows users to cycle through all audio streams in a movies and select a desired stream to play. For example, a lot of non-English-speaking movies contain a native language audio stream, and a English audio stream. The same concept applies when you want to assign any XBMC action to a key.
1. Create a keyboard.xml file. Put the following XML code in it.
Code:
<keymap>
<global>
<keyboard>
<h>AudioNextLanguage</h>
</keyboard>
</global>
</keymap>
2. Put this keyboard.xml file in the "userdata" folder. For Win XP, where
userName is your login name, the location is
C:\Documents and Settings\
userName\Application Data\XBMC\userdata\keymaps. For Win 7, the location is
C:\Users\
userName\AppData\Roaming\XBMC\userdata\keymaps.
Also refer to these Wikis for other systems and information:
http://wiki.xbmc.org/index.php?title=Keymap.xml
3. On the Harmony remote setup screen,
- Select the XBMC activity (or whatever name you have for the XBMC activity),
- Choose
Customize Buttons
- Select the
Additional Buttons tab. This will bring up the LCD pages for soft key.
- Scroll down to an empty slot, and type AudioNext in the box for
Label (1st collumn). This is the name that will appear on the LCD screen, so choose whatever name you'd like for this Label.
- Select
MCE Keyboard from the pulldown list in
Device (2nd collumn)
- Select
H in the pulldown for
Command (3rd collumn).
- Click
Done to save the button.
From now on, you have a soft key named
AudioNext on the LCD page that you've created it. During XBMC activity, go to the LCD page for the command and press the button to cycle through all audio streams.
To assign another XBMC action to another key. Look at the wiki page for all possible actions:
http://wiki.xbmc.org/index.php?title=Action_IDs.
Using the procedure above, you can also assign these XBMC built-in functions to a key
http://wiki.xbmc.org/index.php?title=Lis..._Functions
This is the wiki page for XBMC default mapping of keyboard.
http://wiki.xbmc.org/index.php?title=Global_Keyboard