What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » WLM Plus! Help » Play sound effect upon program launch.

Play sound effect upon program launch.
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Play sound effect upon program launch.
PS: Another method you can use, for any program you want, is to make a small batch file/Windows script which you need to run instead of the program itself:
VBScript code:
sSoundFile = "C:\directory\sound.mp3"
sProgramFile = "C:\Program Files\Windows Live\Messenger\msnmsgr.exe"
'Don't forget to update the proper paths in above variables

Set oWshShell = CreateObject("Wscript.Shell")
oWshShell.Run Chr(34) & sProgramFile & Chr(34)

Set oMCI = CreateObject("MCI.MMcontrol")
oMCI.Command = "Close all"
oMCI.FileName = sSoundFile
oMCI.Command = "Open"
oMCI.Wait = True
oMCI.Command = "Play"

Set oWshShell = Nothing
Set oMCI = Nothing
Save that as a file named "whatever.vbs" (the file extension VBS is important!) and start this instead of Messenger itself.

More about VBScript can be found here.

This post was edited on 11-14-2011 at 03:29 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
11-14-2011 03:07 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Play sound effect upon program launch. - by malovon on 11-14-2011 at 10:41 AM
RE: Play sound effect upon program launch. - by matty on 11-14-2011 at 11:36 AM
RE: Play sound effect upon program launch. - by malovon on 11-14-2011 at 11:46 AM
RE: Play sound effect upon program launch. - by CookieRevised on 11-14-2011 at 01:05 PM
RE: Play sound effect upon program launch. - by malovon on 11-14-2011 at 01:13 PM
RE: Play sound effect upon program launch. - by CookieRevised on 11-14-2011 at 03:07 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