What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » WLM Plus! Bug Reports » OnEvent_ChatWndReceiveMessage not passing down results

OnEvent_ChatWndReceiveMessage not passing down results
Author: Message:
segosa
Community's Choice
*****


Posts: 1407
Reputation: 92
Joined: Feb 2003
O.P. OnEvent_ChatWndReceiveMessage not passing down results
If you have two files in two different scripts:

code:
function OnEvent_ChatWndReceiveMessage(...)
{
  return "Hello ";
}


code:
function OnEvent_ChatWndReceiveMessage(...)
{
  return Message + " bye";
}


where the first file appears higher up in the list of scripts than the second (due to having a name which would appear higher in alphabetical order), the return value of the first will be ignored, and the message returned to the conversation window will be the original message + " bye" instead of "Hello bye".

It doesn't pass down the returns, meaning scripts that may return the passed message (e.g., Linked Chats), that appear further down alphabetically, will be overriding all the things returned by previous scripts in that function.

This post was edited on 10-21-2007 at 12:15 PM by segosa.
The previous sentence is false. The following sentence is true.
10-21-2007 12:05 PM
Profile PM Find Quote Report
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
32 / Male / Flag
Joined: Apr 2004
RE: OnEvent_ChatWndReceiveMessage not passing down results
Seems quite logical for me, the engine loads the files one by one and overwrites functions. That means that your first function is overwritten by your second.
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
10-21-2007 03:19 PM
Profile E-Mail PM Web Find Quote Report
Patchou
Messenger Plus! Creator
*****

Avatar

Posts: 8607
Reputation: 201
43 / Male / Flag
Joined: Apr 2002
RE: OnEvent_ChatWndReceiveMessage not passing down results
you're lucky your script loaded at all :p.

Nofunction should be redefined twice.
[Image: signature2.gif]
10-21-2007 04:46 PM
Profile PM Web Find Quote Report
-dt-
Scripting Contest Winner
*****

Avatar
;o

Posts: 1819
Reputation: 74
36 / Male / Flag
Joined: Mar 2004
RE: OnEvent_ChatWndReceiveMessage not passing down results

quote:
Originally posted by Mattike
Seems quite logical for me, the engine loads the files one by one and overwrites functions. That means that your first function is overwritten by your second.

quote:
Originally posted by Patchou
you're lucky your script loaded at all :p.

Nofunction should be redefined twice.


quote:
Originally posted by segosa
If you have two files in two different scripts:

He means file1 is in moo.plsc and file2 is in xxx.plsc
[Image: dt2.0v2.png]      Happy Birthday, WDZ
10-21-2007 10:37 PM
Profile PM Web Find Quote Report
Patchou
Messenger Plus! Creator
*****

Avatar

Posts: 8607
Reputation: 201
43 / Male / Flag
Joined: Apr 2002
RE: OnEvent_ChatWndReceiveMessage not passing down results
haa... sorry, I misread the post.

That was a bug, thank you for reporting it, it's been fixed in 4.50.
[Image: signature2.gif]
10-27-2007 08:49 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »


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