10. Now to start populating the XBMC folder. I didn't like how the included XBMC plugin sent commands, so I mapped everything to keyboard shortcuts. Let's start with the pause button... Highlight the XBMC folder. Click Add Macro > Window > Emulate Keystrokes. In the Special key tool section choose Space and click Insert.
11. Press the Pause button on your MCE remote. An event will show up in the log. Drag it over to the new macro for the space bar.
12. Repeat for all the keys you want to use on the remote. Here's how I set mine up:
[indent]spacebar > Pause
tab > Record
x > Stop
r > Rewind
p > Play
f > Fast Forward
, > Previous
. > Next
backspace > Back
i > Info
pgup > Channel +
pgdn > Channel -
c > dvd menu
f9 > red button
f10 > green button
f11 > yellow button
f12 > blue button
s > teletext[/indent]
13. I also wanted to start XBMC with the teletext button. Select Configuration > Add Macro > System > Start Application. Browse to the XBMC.exe for the executable and be sure to include any necessary command line options, such as "-fs". Press the teletext button on the remote and drag it to this new macro. Adding XBMC.exe to a button not only starts XBMC, but also gives it focus again if it's already started since only one instance can run.
14. When you are done with everything, it should look something like this:
15. Some of the commands I wanted to work in different ways depending on where you were in XBMC so I setup my userdata\Keymap.xml as follows:
Code:
<keymap>
<!-- Adds the ability to jump through music and video lists
by using SMS input with the number keys. Adds ability to
jump straight to sections with F9, F10, F11, F12 -->
<global>
<keyboard>
<two>JumpSMS2</two>
<three>JumpSMS3</three>
<four>JumpSMS4</four>
<five>JumpSMS5</five>
<six>JumpSMS6</six>
<seven>JumpSMS7</seven>
<eight>JumpSMS8</eight>
<nine>JumpSMS9</nine>
<F9>XBMC.ActivateWindow(MyVideos)</F9>
<F10>XBMC.ActivateWindow(MyMusic)</F10>
<F11>XBMC.ActivateWindow(MyPictures)</F11>
<F12>XBMC.ActivateWindow(Home)</F12>
</keyboard>
</global>
<!-- JumpSMS isn't needed in fullscreen videos, this keeps
the number keys working to jump to a time. Also adds aspect
ratio and 7 second jump back to pgup/pgdn and the codec info
to c (instead of just the default o) -->
<FullscreenVideo>
<keyboard>
<two>Number2</two>
<three>Number3</three>
<four>Number4</four>
<five>Number5</five>
<six>Number6</six>
<seven>Number7</seven>
<eight>Number8</eight>
<nine>Number9</nine>
<c>CodecInfo</c>
<pageup>AspectRatio</pageup>
<pagedown>SmallStepBack</pagedown>
</keyboard>
</FullscreenVideo>
<!-- Items below simulate the way music in a playlist are
queued, deleted and moved on the xbox dvd remote (2,5,0) -->
<MyMusicPlaylist>
<keyboard>
<zero>Delete</zero>
<two>MoveItemUp</two>
<five>MoveItemDown</five>
</keyboard>
</MyMusicPlaylist>
<MyMusicFiles>
<keyboard>
<zero>Queue</zero>
</keyboard>
</MyMusicFiles>
<MyMusicLibrary>
<keyboard>
<zero>Queue</zero>
</keyboard>
</MyMusicLibrary>
<!-- The items below were added because the back button
wouldn't exit fullscreen music visualization or close the
dialogue boxes. Also added play to simulate pause. -->
<Visualisation>
<keyboard>
<backspace>FullScreen</backspace>
<p>Pause</p>
</keyboard>
</Visualisation>
<MusicOSD>
<keyboard>
<backspace>Close</backspace>
</keyboard>
</MusicOSD>
<VisualisationSettings>
<keyboard>
<backspace>Close</backspace>
</keyboard>
</VisualisationSettings>
<VisualisationPresetList>
<keyboard>
<backspace>Close</backspace>
</keyboard>
</VisualisationPresetList>
<!-- Picture EXIF info with i and rotate with return -->
<SlideShow>
<keyboard>
<i>CodecInfo</i>
<return>Rotate</return>
</keyboard>
</SlideShow>
</keymap>
16. Finally, when used with the keyboard commands and xml file above, this is how it all works on the MCE remote:
If you like it mapped how it is in that graphic, you could also just grab the EventGhost xml file that I saved and import it... saving yourself the hassle of mapping everything yourself:
http://www.zshare.net/download/58430054fc5c36e5/ or
http://pastebin.com/f7b8c60b6
There's probably a better way to do this so I would love some feedback but overall it works pretty well for me. There are a few things I don't like about having this as a hybrid setup (like the recorded tv, epg, live tv, and big green button only work for MCE and volume and mute are done through windows so you don't get onscreen feedback about it in XBMC). I also had played with mapping the commands directly to the XBMC plugin that comes with EventGhost but that seemed to lose a lot of functionality, key repeat rates just weren't right for scrolling and it was almost impossible to double up keys to do different things in different areas with the keymap.xml.