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:
Alfredao
New Member
*


Posts: 3
33 / Male / Flag
Joined: Jun 2011
O.P. Detect receiving sound on ChatWndReceiveMessage
Hello, I never did a script for MsgPlus.

I have a friend who always send-me a "Wooooow!" sound (/swoow), and when he sends I answer with an "af", but doens't matter.

What I'm trying to do is, when i receive a Wooow, automatically asnwer with an "af" or whatever.


This is the script I did.

js code:
function OnEvent_ChatWndReceiveMessage(ChatWnd,Origin,Message,MessageKind)
{
    if(Origin != Messenger.MyName)
    {
        if(Message.search(/Wooooow/) != -1)
        {
            ChatWnd.SendMessage("af");
        }
    }
}

If I receive a message with "Wooooow" I will answer with af automatically but it isn't working when i receive a /swoow.

Someone can help-me?

Thanks and sorry for bad english.

This post was edited on 06-26-2011 at 10:46 AM by Alfredao.
06-26-2011 07:09 AM
Profile E-Mail PM Web 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