Kodi Community Forum
Trying to make a script to start slideshow - 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)
+--- Thread: Trying to make a script to start slideshow (/showthread.php?tid=14306)



- enigma9o7 - 2005-08-16

i want a slideshow to automatically come up on bootup, so i need a script that does the slideshow and i'll add it to autoexec.py

here's what i tried:
Quote:import xbmc
xbmc.executebuiltin('xbmc.slideshow(f:\\media\\skins\\localpics )')

but it doesn't do anything. i can start a slideshow manually from my pictures no problem.


- thor918 - 2005-08-16

you know pushing the white button in myscripts will give you python errors.

can't relly see whats wrong
try changing ' to " ?

xbmc.executebuiltin("xbmc.slideshow(e:\\pictures)")


- Nuka1195 - 2005-08-16

you have a space at the end of your path.

if removing that doesn't work, try adding \\ at the end.


- enigma9o7 - 2005-08-17

thanks. removing the space and adding the \\ did the trick
Quote:import xbmc
xbmc.executebuiltin('xbmc.slideshow(f:\\media\\skins\\localpics\\Wink')



- enigma9o7 - 2005-08-17

(thor918 @ aug. 16 2005,21:48 Wrote:you know pushing the white button in myscripts will give you python errors.
nope, dunno. and not even sure what you mean.


- thor918 - 2005-08-17

push the white button on your controller
when
you are in the window where you can execute python scripts.
if you do that you will get a python debug logg.
any errors are displayed there


- Solo0815 - 2005-08-17

can you add music to it too, please?
so i can start the script, then the slideshow and predefined music (pls or folder) starts.


- enigma9o7 - 2005-08-17

there's a startup_playlist.py script that i downloaded, it does the music. it's on the script website.