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:
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: RE: Detect receiving sound on ChatWndReceiveMessage
quote:
Originally posted by Alfredao
I tried this.
Javascript code:
function OnEvent_ChatWndReceiveMessage(ChatWnd,Origin,Message,MessageKind)
{
    ChatWnd.SendMessage(MsgPlus.RemoveFormatCodes(Message));
}


Do not use such code. It will trigger an infinate loop if it wasn't for the build-in flood checker!

If you want to output the message to check it, you should use the debug window:
Javascript code:
function OnEvent_ChatWndReceiveMessage(ChatWnd,Origin,Message,MessageKind) {
    Debug.Trace(Message);
}


However, the sounds (both the build-in ones and custom sounds) will not trigger the ChatWndReceiveMessage event. In other words, you can not do want you want.

This post was edited on 06-26-2011 at 01:37 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
06-26-2011 01:34 PM
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