Autoexec Service: Difference between revisions
Jump to navigation
Jump to search
m (Bot: Automated text replacement (- XBMC + Kodi )) |
No edit summary |
||
Line 5: | Line 5: | ||
This script will open up the video files view focused on the root of C:\ when Kodi is started. | This script will open up the video files view focused on the root of C:\ when Kodi is started. | ||
import xbmc | import xbmc | ||
xbmc.executebuiltin(' | xbmc.executebuiltin('ActivateWindow(videofiles,C:\)') | ||
Here is an example that starts your favourite addon: | Here is an example that starts your favourite addon: | ||
import xbmc | import xbmc | ||
xbmc.executebuiltin(' | xbmc.executebuiltin('RunScript(script.audio.spotimc)') | ||
And this example takes you to the movie overview: | And this example takes you to the movie overview: | ||
import xbmc | import xbmc | ||
xbmc.executebuiltin(' | xbmc.executebuiltin('ActivateWindow(myvideolibrary,movietitles)') | ||
== References == | == References == |
Revision as of 16:19, 1 October 2017
This page or section may require cleanup, updating, spellchecking, reformatting and/or updated images. Please improve this page if you can. The discussion page may contain suggestions. |
autoexec.py is an optional python script that users can create in their userdata folders that will be executed when Kodi starts up.
Examples
This script will open up the video files view focused on the root of C:\ when Kodi is started.
import xbmc xbmc.executebuiltin('ActivateWindow(videofiles,C:\)')
Here is an example that starts your favourite addon:
import xbmc xbmc.executebuiltin('RunScript(script.audio.spotimc)')
And this example takes you to the movie overview:
import xbmc xbmc.executebuiltin('ActivateWindow(myvideolibrary,movietitles)')