Adding Addons to keymap and favourites - 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: Windows (https://forum.kodi.tv/forumdisplay.php?fid=59) +---- Thread: Adding Addons to keymap and favourites (/showthread.php?tid=84856) |
Adding Addons to keymap and favourites - eriksmith200 - 2010-11-06 How can I add an add-on to favourites.xml in Dharma Beta 4? I've tried this: <favourite name="Apple Movie Trailers Lite" thumb="special://home/addons/plugin.video.apple.movie.trailers.lite/icon.png">RunScript(special://home/addons/plugin.video.apple.movie.trailers.lite/addon.py)</favourite> but when I start this from favourites I get an error: script failed: addon.py When I start the apple trailers lite script from video addons it runs without problems. - amet - 2010-11-06 eriksmith200 Wrote:How can I add an add-on to favourites.xml in Dharma Beta 4? go to video addons, select apple trailers lite script, bring up the context meny("c" on the keyboard) and add it to favorites.... that should work - eriksmith200 - 2010-11-06 Amet Wrote:go to video addons, select apple trailers lite script, bring up the context meny("c" on the keyboard) and add it to favorites.... that should work doh! I was thinking xbmc still needs xml hacking, thanks for the tip - jhsrennie - 2010-11-06 Incidentally, once you've added the addon to your favourites it's easy to define a key mapping for it. If you edit favourites.xml you'll see something like: <favourite name="MCERemote">ActivateWindow(10001, "plugin://plugin.program.mceremote/")</favourite> To map this to e.g. ctrl-A use: <a mod="ctrl">ActivateWindow(10001,"plugin://plugin.program.mceremote/")</a> Adding the addon to the favourites then editing favourites.xml is the only way I know to get the number for the first arguament to ActivateWindow. JR - MrWolf - 2010-11-07 In addition to this issue, I'd like to map a key on my Harmony remote to the subtitle script. I used to have this in 9.11 (Bierdopje subtitle script), but it doesn't seem to work in Dharma beta 4. I've added the following line to Harmony.xml in the keymaps-dir. <obc15>RunScript(/home/xbmc/.xbmc/addons/script.xbmc.subtitles/default.py)</obc15> Other actions seem to work fine, but I can't get scripts (or addons) to work this way... - amet - 2010-11-07 MrWolf Wrote:In addition to this issue, I'd like to map a key on my Harmony remote to the subtitle script. I used to have this in 9.11 (Bierdopje subtitle script), but it doesn't seem to work in Dharma beta 4. <obc15>RunScript(script.xbmc.subtitles)</obc15> should be enough not sure what "obc15" represents though - MrWolf - 2010-11-07 Thanks, that indeed did the trick! FYI, <obc15> is a buttoncode for the Harmony-remote. |