Kodi Community Forum
Using your keyboard function keys to start addons & playlists etc - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Skins Support (https://forum.kodi.tv/forumdisplay.php?fid=67)
+---- Forum: Transparency! (https://forum.kodi.tv/forumdisplay.php?fid=115)
+---- Thread: Using your keyboard function keys to start addons & playlists etc (/showthread.php?tid=141006)



Using your keyboard function keys to start addons & playlists etc - thebearnecessit - 2012-09-21

I have edited my keyboard.xml so that my keyboard function keys open playlists and things.

My question is how can I make these function keys actually start playing my video playlists (instead of listing the playlist videos)?

here is what I have in my keyboard.xml in the 'global' section:

They all 'work' fine except I want the playlists to automatically play. I have tried adding comma play at the end but it didn't work: ,play (The last one opens the youtube addon directly at the youtube search section, by the way in case anyone wants to steal that idea).

<f1>ActivateWindow(videolibrary,tvshowtitles)</f1>
<f2>ActivateWindow(videolibrary,movietitles)</f2>
<f3>ActivateWindow(myvideolibrary, special://videoplaylists/bee.m3u)</f3>
<f4>ActivateWindow(10025,"plugin://plugin.video.1channel/")</f4>
<f5>ActivateWindow(myvideolibrary, special://videoplaylists/SleepyVideos.m3u)</f5>
<f7>ActivateWindow(10025,"special://profile/playlists/video/My Music TV.xsp", return)</f7>
<f8>ActivateWindow(10025,&quot;plugin://plugin.video.youtube/?
path=/root/search&amp;login=false&amp;folder=true&amp;store=searches&amp;&quot;)</f8>



RE: Using your keyboard function keys to start addons & playlists etc - ronie - 2012-09-21

use the PlayMedia() function:
http://wiki.xbmc.org/index.php?title=List_of_Built_In_Functions