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.
This script will play a sound when Messenger starts:
js code:
var sSoundFile = "C:\\directory\\sound.mp3";
function OnEvent_Initialize(bMessengerStart) {
    if (bMessengerStart) {
        MsgPlus.PlaySound("\\" + sSoundFile);
    }
}

- Open the scripting editor in Plus!
  (Plus! > Preferences & Options > Plugins > Plus! Plugins)
- Click on "create new..."
- Fill in the name of the new script.
- In the editor copy/paste the code above
- Change the path and file name to the sound (mp3, wav, voc, au, ... but not wma files) you want.
- Press "Save All"

If you want to learn scripting in Plus! you can read the documentation here or download it here.

This post was edited on 11-14-2011 at 03:16 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
11-14-2011 01:05 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