PDA

View Full Version : [Help] autoexec


tikyle
2006-02-02, 16:52
ok i got my autoexec.py to load a playlist at the startup but i want it to play the start.wav first then load the playlist. i know nothing about python scription so any help would be useful. i think my autoexec looks like this

import xbmc
xbmc.executescript('q://scripts//mp3.py')


all i want is for it to play start.wav then play this. is there a python command to just play a file? also is there a pause command?

diagdave@msn.com
2006-02-02, 16:57
could try:

import xbmc,time
time.sleep(10)
#^ sleeps 10 seconds then loads the autoplaylist
xbmc.executescript('q://scripts//mp3.py')

tikyle
2006-02-02, 16:59
thanks i'll try that tonight after work and see what it leads to.

theni9e
2006-02-03, 01:54
you mean like a startup sound, like the one that comes with xbmc or your own startup sound. simply replace the startup.wav (i believe thats what it is called) with your own wav file in your xbmc/media folder and that sound will play as soon as xbmc loads, beforea playlist or anything else starts...

tikyle
2006-02-03, 03:08
could try:

import xbmc,time
time.sleep(10)
#^ sleeps 10 seconds then loads the autoplaylist
xbmc.executescript('q://scripts//mp3.py')


thanks it worked like a charm!!
:kickass: