What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » WLM Plus! General » Why does Plus! parse sent messages twice?

Why does Plus! parse sent messages twice?
Author: Message:
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
O.P. Why does Plus! parse sent messages twice?
It appears that Plus! parses messages twice. How come?

For instance if you have this code:

code:
function OnEvent_ChatWndSendMessage(oChatWnd, sMessage){
    Debug.Trace(sMessage);
}

If the sent message is (!VER) command we all know that Plus! will convert that the the version information.

However if you have this code:

code:
function OnEvent_ChatWndSendMessage(oChatWnd, sMessage){
    Debug.Trace(sMessage);
    return oChatWnd.EditText.replace(/\(!VER\)/g, '(!VER)\nthis is a test');
}

You would expect that the returned message should be
(!VER)
this is a test

However it isn't Plus! will parse the message again after that function is complete.

Plus! should, in all reality, only parse the message after each script has completed that function if it exists. This will save CPU cycles.

I know it isn't visible to the naked eye or can't appear to be taking any more time to parse twice but it makes the poor CPU work that much harder.

This post was edited on 07-08-2007 at 09:29 PM by matty.
07-08-2007 09:18 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Why does Plus! parse sent messages twice? - by matty on 07-08-2007 at 09:18 PM
RE: Why does Plus! parse sent messages twice? - by Patchou on 07-08-2007 at 11:37 PM
RE: Why does Plus! parse sent messages twice? - by matty on 07-08-2007 at 11:49 PM
RE: Why does Plus! parse sent messages twice? - by Patchou on 07-09-2007 at 04:18 AM
RE: Why does Plus! parse sent messages twice? - by markee on 07-09-2007 at 01:59 PM
RE: Why does Plus! parse sent messages twice? - by Volv on 07-09-2007 at 02:16 PM
RE: Why does Plus! parse sent messages twice? - by CookieRevised on 07-10-2007 at 12:20 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