xboxscene.org forums

Author Topic: How To Run A Script On Startup?  (Read 125 times)

Bomb Bloke

  • Archived User
  • Hero Member
  • *
  • Posts: 2398
Logged

phantom92opera

  • Archived User
  • Newbie
  • *
  • Posts: 2
How To Run A Script On Startup?
« Reply #1 on: March 02, 2009, 05:21:00 PM »

CODE
import xbmc
xbmc.executescript('q:\\scripts\\Startupvideo\\video.py')


so it forwards to the following.. video.py which should open a video file at the opening of xbmc (ultimately the booting of my console)
CODE
import xbmc
file = q:\\scripts\\Startupvideo\\IntroXboxHD.avi
xbmc.player().play(file)


nothing loads, i just get a black screen. no audio or vid. and xbmc wont load.  any suggestions?
Logged