Autoexec Service: Difference between revisions
Appearance
m Robot: Substituting template: Name |
m Robot: Changing Category:XBMC Manual to Category:Manual |
||
| Line 20: | Line 20: | ||
[[List of built-in functions]] | [[List of built-in functions]] | ||
[[Category: | [[Category:Manual]] | ||
[[Category:Python]] | [[Category:Python]] | ||
[[Category:Settings]] | [[Category:Settings]] | ||
[[Category:Advanced topics]] | [[Category:Advanced topics]] | ||
Revision as of 21:16, 17 November 2014
|
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 XBMC starts up.
Examples
This script will open up the video files view focused on the root of C:\ when XBMC is started.
import xbmc
xbmc.executebuiltin('XBMC.ActivateWindow(videofiles,C:\)')
Here is an example that starts your favourite addon:
import xbmc
xbmc.executebuiltin('XBMC.RunScript(script.audio.spotimc)')
And this example takes you to the movie overview:
import xbmc
xbmc.executebuiltin('XBMC.ActivateWindow(myvideolibrary,movietitles)')
