Autoexec Service: Difference between revisions
Jump to navigation
Jump to search
>Kibje |
>Kibje |
||
Line 3: | Line 3: | ||
autoexec.py is an optional python script that users can create in their [[userdata]] folders that will be executed when XBMC starts up. | 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 | import xbmc | ||
xbmc.executebuiltin('XBMC.ActivateWindow(videofiles,C:\)') | xbmc.executebuiltin('XBMC.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.RunScript(script.audio.spotimc)') | xbmc.executebuiltin('XBMC.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.ActivateWindow(myvideolibrary,movietitles)') | xbmc.executebuiltin('XBMC.ActivateWindow(myvideolibrary,movietitles)') |
Revision as of 12:18, 18 May 2013
INCOMPLETE: This page or section is incomplete. Please add information or correct uncertain data which is marked with a ? |
Description
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)')