Kodi Community Forum

Full Version: using keboard.xml to play a sound on a key press
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hi, I am completely new to editing the keybaord.xml but have a simple requirement, on a single keypress say "z" I want to play an MP3, I have done as per the wiki and in the global section I have added the following line:

<z>XBMC.PlayMedia(\\HTPC\Users\Jonathan\Videos\Pearl.mp3)

with this in the file I get "error at line 145", is there something stupid I have done wrong?
you have to close the <z> tag again - so it's:

<z>XBMC.PlayMedia(\\HTPC\Users\Jonathan\Videos\Pearl.mp3)</z>

(note the </z> at the end)
thanks that sorted it, althought the location was wrong i.e. slashes were round the wrong way!

<z>XBMC.PlayMedia(//HTPC/Users/Jonathan/Videos/Pearl.mp3)</z>