Kodi Community Forum
Mapping a key to a script addon, please help - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: OS independent / Other (https://forum.kodi.tv/forumdisplay.php?fid=228)
+---- Thread: Mapping a key to a script addon, please help (/showthread.php?tid=199732)



Mapping a key to a script addon, please help - jjmucker - 2014-07-11

Ive been trying for the past few hours to add the letter "g" to keyboard.xml so that I can hit the letter and run a script, last.fm plugin addon

This is what I have. Can someone please tell me if this is correct?
I'm running an android box, tried adding the keyboard.xml into userdata folder but I isn't working Sad

<keymap>
<global>
<keyboard>
<g>RunScript("script.lastfmplaylistgeneratorPM")</g>
</keyboard>
</global>
</keymap>


RE: Mapping a key to a script addon, please help - ironic_monkey - 2014-07-11

No quotes


RE: Mapping a key to a script addon, please help - jjmucker - 2014-07-11

The code above actually works. The only thing I can think of that worked is I put it into the keymap folder too. Smile