Scripts/Autoexec.py

Description
autoexec.py is an optional Python script that can be created in Q:\Scripts or in a user profile Scripts directory that will be executed when XBMC4Xbox 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)')