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:
Jimbo
Veteran Member
*****

Avatar

Posts: 1650
Reputation: 18
32 / Male / Flag
Joined: Jul 2006
O.P. RE: Help running application on initialize
quote:
Originally posted by CookieRevised
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.
Thanks cookie, very useful as usual ;)

Why doesn't this code work then?
code:
function OnEvent_Signin(){
    new ActiveXObject('WScript.Shell').Run("\"C:\\Documents and Settings\\James Ross\\My Documents\\My Music\My Playlists\\Untitled Playlist.wpl\\"");
}

01-19-2007 07:33 PM
Profile E-Mail 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