Autoexec Service: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
>Kibje
No edit summary
>Kibje
No edit summary
Line 5: Line 5:
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:\


import xbmc
    import xbmc
xbmc.executebuiltin('XBMC.ActivateWindow(videofiles,C:\)')
    xbmc.executebuiltin('XBMC.ActivateWindow(videofiles,C:\)')
 
http://wiki.xbmc.org/index.php?title=Built-in_scripting#Using_Built-in_Functions_from_python


[[Category:XBMC Manual]]
[[Category:XBMC Manual]]

Revision as of 12:00, 18 May 2013

Incomplete.png INCOMPLETE:
This page or section is incomplete. Please add information or correct uncertain data which is marked with a ?

autoexec.py is an optional python script that users can create in their userdata folders that will be executed when XBMC starts up.

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:\)')

http://wiki.xbmc.org/index.php?title=Built-in_scripting#Using_Built-in_Functions_from_python