Autoexec Service: Difference between revisions
Jump to navigation
Jump to search
>Kibje No edit summary |
>Kibje No edit summary |
||
Line 1: | Line 1: | ||
{{incomplete}} | {{incomplete}} | ||
=== Description === | |||
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. | ||
=== Example === | |||
An example of a autoexec.py is this script that opens up the video files view focused on the root of C:\ | An example of a autoexec.py is this script that opens up the video files view focused on the root of C:\ | ||
Line 8: | Line 9: | ||
xbmc.executebuiltin('XBMC.ActivateWindow(videofiles,C:\)') | xbmc.executebuiltin('XBMC.ActivateWindow(videofiles,C:\)') | ||
=== References === | |||
[[Built-in_scripting#Using_Built-in_Functions_from_python]] | |||
[[List_of_built-in_functions]] | |||
[[Category:XBMC Manual]] | [[Category:XBMC Manual]] | ||
[[Category:Python]] | [[Category:Python]] |
Revision as of 12:06, 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.
Example
An example of a autoexec.py is this script that opens up the video files view focused on the root of C:\
import xbmc xbmc.executebuiltin('XBMC.ActivateWindow(videofiles,C:\)')