Kodi Community Forum
How to create shortcut for "Favorites" - 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: How to create shortcut for "Favorites" (/showthread.php?tid=157026)



How to create shortcut for "Favorites" - Dirki - 2013-02-21

How can I create a shortcut for "Favorites" or a menu item for it?


RE: How to create shortcut for "Favorites" - saitoh183 - 2013-02-21

Context Menu on the item you want to add to favorites. If you want to add it to the main menu, depending on the skin your using, this step can vary


RE: How to create shortcut for "Favorites" - Dirki - 2013-02-21

Thank you, saitoh183,

And sorry for bad expression. What I meant was, how can I create a shortcut, so press two or more keys of the keyboard at the same time to open the "Favorites" file list, so that I can see the favorites I added before.


RE: How to create shortcut for "Favorites" - artrafael - 2013-02-21

Create a custom keyboard.xml (wiki) file in your userdata (wiki)/keymaps/ directory with the following contents:
Code:
<keymap>
  <global>
    <keyboard>
      <some-key>ActivateWindow(Favourites)</some-key>
    </keyboard>
  </global>
</keymap>
  • Substitute "some-key" with the name of the key you wish to assign to this function. Obviously, it should be a key that's not already used by XBMC. The function keys (F1-F12) are good candidates.
  • If you already have a custom keyboard.xml file in your userdata (wiki)/keymaps/ directory, just add the key assignment statement to the <global> section of your existing file.



RE: How to create shortcut for "Favorites" - Dirki - 2013-02-22

Many thanks, artrafael,

Yes, I already had such file, I did it like that and it works:

Code:
<keymap>
  <FullscreenVideo>
    <keyboard>
    <b mod="ctrl">ActivateWindow(VideoBookmarks)</b>
      <b>RunScript(C:\Users\Dirk\AppData\Roaming\XBMC\userdata\setbookmark.py)</b>
    </keyboard>
  </FullscreenVideo>
  <VideoOSD>
    <keyboard>
      <b>RunScript(C:\Users\Dirk\AppData\Roaming\XBMC\userdata\setbookmark.py)</b>
      <b mod="ctrl">ActivateWindow(VideoBookmarks)</b>
    </keyboard>
  </VideoOSD>
  
  <global>
    <keyboard>
      <numpadone>LastPage</numpadone>
      <numpadthree>PageDown</numpadthree>
      <numpadseven>FirstPage</numpadseven>
      <numpadnine>PageUp</numpadnine>
      <f mod="ctrl">ActivateWindow(Favourites)</f>
    </keyboard>
    
  </global>
</keymap>

Great, many thanks again.


This forum uses Lukasz Tkacz MyBB addons.