Reply to thread

Hi chemelli,


To be honest I had to do quite a bit of messing about! Like others I couldn't get complete control of the plugin so I changed key codes manually in the keyboard.xml file. The plugin helped me to understand how the xml file worked. Here's what I did (I hope I don't miss any steps out!)


1. I opened up the plugin and selected the Add/Remove Buttons option. Here I used the button code field to find out what code would be for ctrl-alt and l (which was 110076) as I thought these would be a good key combination for MyLyrics.

2. I then downloaded stanik's keyboard.xml file (page 1 of this thread) and put this in the MediaPortal\InputDeviceMappings\defaults folder (this replaced the existing one - if you do this I would recommend keeping a copy of the existing one in case you need it later).

3. I then opened up stanik's keyboard.xml file and under the information for the Music button I placed the following commands:

       

<button name="Lyrics" code="110076">

<action layer="0" condition="*" conproperty="-1" command="WINDOW" cmdproperty="90478" sound="click.wav"/>

<action layer="0" condition="*" conproperty="-1" command="ACTION" cmdproperty="13" sound="click.wav" />

</button>


As you can see the 110076 part is the code for control, alt and 'l'. In the second line the cmdproperty is 90478. This is the id for the MyLyrics page. Now you could substitute this with the id for any page.


Using the above information I now have buttons on my remote (Imon remote using Girder to map the keystrokes) which taking me straight to MyLyrics, NowPlaying, MyMusicPlaylist screens which I think is great. I use MP for Music more than anything and like the fact that I can get around the music section so easily now.


So as you can see quite a bit of messing about. I didn't use the plugin a great deal but it has helped me to learn about the key mapping. I'm sure there is probably a much easier way to do the above but I couldn't work it out.


I still don't really understand the language in the keyboard.xml file and would like to. For instance in the MyLyrics example above, what does the third line do? I've tried messing around with it to work it out but didn't get very far!


What my aim now is is to have one button that I press that takes me straight to the mymusicplaylist and starts up random on the audioscrobbler. Now that would be ace but maybe I'm asking too much! Can anyone help?


Top Bottom