What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Detect receiving sound on ChatWndReceiveMessage

Detect receiving sound on ChatWndReceiveMessage
Author: Message:
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
35 / Male / Flag
Joined: Aug 2006
RE: Detect receiving sound on ChatWndReceiveMessage
Not to sure but is the Wooooow in a certain colour?

try:

Javascript code:
function OnEvent_ChatWndReceiveMessage(ChatWnd,Origin,Message,MessageKind)
 {
     if(Origin != Messenger.MyName)
     {
         if(MsgPlus.RemoveFormatCodes(Message.toLower().search(/wooooow/)) != -1)
         {
             ChatWnd.SendMessage("af");
         }
     }
 }


That will remove the colour codes before doing the search. It'll also make it all lower case just incase the capitalization is different

This post was edited on 06-26-2011 at 09:29 AM by Spunky.
<Eljay> "Problems encountered: shit blew up" :zippy:
06-26-2011 09:29 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Detect receiving sound on ChatWndReceiveMessage - by Alfredao on 06-26-2011 at 07:09 AM
RE: Detect receiving sound on ChatWndReceiveMessage - by Spunky on 06-26-2011 at 09:29 AM
RE: Detect receiving sound on ChatWndReceiveMessage - by Alfredao on 06-26-2011 at 10:46 AM
RE: RE: Detect receiving sound on ChatWndReceiveMessage - by CookieRevised on 06-26-2011 at 01:34 PM
RE: Detect receiving sound on ChatWndReceiveMessage - by Alfredao on 06-27-2011 at 02:46 AM


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