What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Help running application on initialize

Help running application on initialize
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
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 =-.
01-19-2007 01:30 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Help running application on initialize - by Jimbo on 01-17-2007 at 08:29 PM
RE: Help running application on initialize - by matty on 01-17-2007 at 08:30 PM
RE: Help running application on initialize - by Jimbo on 01-17-2007 at 08:31 PM
RE: Help running application on initialize - by CookieRevised on 01-17-2007 at 09:20 PM
RE: Help running application on initialize - by Jimbo on 01-19-2007 at 07:03 AM
RE: Help running application on initialize - by NanaFreak on 01-19-2007 at 07:06 AM
RE: Help running application on initialize - by Jimbo on 01-19-2007 at 07:09 AM
RE: Help running application on initialize - by CookieRevised on 01-19-2007 at 01:30 PM
RE: Help running application on initialize - by Jimbo on 01-19-2007 at 07:33 PM
RE: Help running application on initialize - by pedro_cesar on 01-19-2007 at 11:20 PM
RE: Help running application on initialize - by CookieRevised on 01-20-2007 at 01:47 AM
RE: Help running application on initialize - by Jimbo on 01-20-2007 at 08:34 AM
RE: Help running application on initialize - by CookieRevised on 01-20-2007 at 01:28 PM
RE: Help running application on initialize - by Mike on 01-20-2007 at 01:42 PM
RE: Help running application on initialize - by CookieRevised on 01-27-2007 at 04:05 PM
RE: Help running application on initialize - by balabek on 04-10-2007 at 12:53 PM
RE: Help running application on initialize - by vikke on 04-10-2007 at 01:09 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On