Kodi Community Forum
Configuring remote to run app - Printable Version

Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Music Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=148)
---- Thread: Configuring remote to run app (/showthread.php?tid=167185)



Configuring remote to run app - johnyb - 2013-06-15

Ok, so I have xsqueeze installed and would like to setup an activity on my harmony remote that will turn on xbmc and run the xsqueeze application. This would allow me to use it without having to turn on the TV
Is this possible? Obviouisly I can do this first part (switching it on) but how can I configure a button to specify a program to run? Thanks


RE: Configuring remote to run app - teeedubb - 2013-06-15

http://wiki.xbmc.org/index.php?title=Built-in_scripting#Using_Built-in_Functions_from_keymap.xml


RE: Configuring remote to run app - johnyb - 2013-06-15

Thanks for this. But Im not able to get the basics working.
So I created a file keyboard.xml in /userdata/keymaps/ which looked like this....

<keymap>
<global>
<keyboard>
<d>Notification(Keypress, You pressed D!, 3)</d>
</keyboard>
</global>
</keymap>

Any ideas why?


RE: Configuring remote to run app - johnyb - 2013-06-18

Ok so not quite sure what solved this (maybe using Notepad++ as text editor) but now 'd' works ok and shows a message. So now trynig to run the XSqueeze app as follows, but Im doing something wrong because it doesnt start. Amy ideas?

Code:
<keymap>
  <global>
    <keyboard>
      <d>Notification(Keypress, You pressed D!, 3)</d>
      <e>xbmc.executebuiltin('XBMC.RunScript(/storage/.xbmc/addons/script.module.xsqueezecommon/lib/XSqueezeCommon.py)')</e>
    </keyboard>
  </global>
</keymap>



This forum uses Lukasz Tkacz MyBB addons.