RE: Help running application on initialize
With the Run function you start up an application. Most applications can take parameters and depending on what parameters you enter it does different stuff.
This is no different for WMP. What you do with the Run function is the same as what you do when you manually start a sound or playlist in Windows Explorer. In that case Windows will also start up WMP with a parameter, being the playlist for example.
What you also can do is starting up the playlist itself instead of starting up the WMP application. Windows will then automatically start that file with the associated application, which is in this case WMP. This is your best method for something like this because then you don't need to worry about the correct parameters (which can be quite different than just adding the filename to the command line) and Windows will handle all the rest for you.
So instead of Run("c:\wmplayer.exe") you do Run("c:\myplaylist.wpl"). The script should of course handle the randomness itself and needs a list (or directory) to choose the list from.
This post was edited on 01-19-2007 at 01:33 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
|