What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » getting a message and a sound together

getting a message and a sound together
Author: Message:
whiz
Senior Member
****


Posts: 568
Reputation: 8
– / – / Flag
Joined: Nov 2008
RE: getting a message and a sound together
You still need to tell us a bit more about what exactly you want to achieve here.
  • What exactly do you want to be played?  Do you want the message to be read out, or a specific sound?
  • Do you want to hear the sound, or do you want the contact to hear it?
JScript code:
function OnEvent_ChatWndSendMessage(ChatWnd, Message)
{
    switch (Message)
    {
        case "/sstart":
            sEnabled = true;
            return "";
        case "/sstop":
            sEnabled = false;
            return "";
        default:
            if (sEnabled)
            {
                Message = Message.replace(/that/gi, "ðæt");                return Message;
            }
            break;
    }
}

  • What is the replace line for?  Do you want to play the sound if the replacement occurs in the message?
Also, you should use [code=js] for syntax highlighting when posting your code here.  ;)
11-11-2010 08:38 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
getting a message and a sound together - by OmarNajdi on 11-11-2010 at 03:12 PM
RE: getting a message and a sound together - by matty on 11-11-2010 at 04:37 PM
RE: getting a message and a sound together - by OmarNajdi on 11-11-2010 at 07:51 PM
RE: getting a message and a sound together - by whiz on 11-11-2010 at 08:38 PM
RE: getting a message and a sound together - by OmarNajdi on 11-12-2010 at 01:23 AM
RE: getting a message and a sound together - by ryxdp on 11-12-2010 at 11:39 AM
RE: getting a message and a sound together - by OmarNajdi on 11-15-2010 at 11:59 AM
RE: getting a message and a sound together - by CookieRevised on 11-15-2010 at 06:25 PM
RE: getting a message and a sound together - by OmarNajdi on 11-18-2010 at 02:05 AM
RE: getting a message and a sound together - by whiz on 11-18-2010 at 10:22 AM
RE: getting a message and a sound together - by OmarNajdi on 11-18-2010 at 11:50 AM
RE: getting a message and a sound together - by matty on 11-18-2010 at 11:55 AM
RE: getting a message and a sound together - by OmarNajdi on 11-18-2010 at 09:57 PM
RE: getting a message and a sound together - by matty on 11-18-2010 at 10: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