Kodi Community Forum

Full Version: Trying to make a script to start slideshow
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
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)")
you have a space at the end of your path.

if removing that doesn't work, try adding \\ at the end.
thanks. removing the space and adding the \\ did the trick
Quote:import xbmc
xbmc.executebuiltin('xbmc.slideshow(f:\\media\\skins\\localpics\\Wink')
(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.
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
can you add music to it too, please?
so i can start the script, then the slideshow and predefined music (pls or folder) starts.
there's a startup_playlist.py script that i downloaded, it does the music. it's on the script website.