Shoutbox

OnEvent_ChatWndReceiveMessage Change - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: WLM Plus! General (/forumdisplay.php?fid=23)
+----- Thread: OnEvent_ChatWndReceiveMessage Change (/showthread.php?tid=80183)

OnEvent_ChatWndReceiveMessage Change by bigbob85 on 12-18-2007 at 02:02 AM

I was wondering if this was possible (although if it were it'd be done by now) to change what OnEvent_ChatWndReceiveMessage gives in its atributes.

code:
[string] OnEvent_ChatWndReceiveMessage(
    [object] ChatWnd,
    [string] Origin,
    [string] Message,
    [enum] MessageKind
);

If next to Origin it could also send Email string, or a Contact object then we dont need to worry about all the StuffPlug and MessengerDiscovery clashes (chat only name).
Im fairly sure messenger protocol sends email so in theory this is possible right?

EDIT
quote:
The value returned by this event handler is ignored if MessageKind specifies a wink or a voice clip.

Because Messenger Plus! analyses messages received only when they reach the chat window, it is not possible to determine exactly from which contact the message came from. However, several methods can be used to guess if the message was actually sent by the current user. For example, to determine whether or not the personalized status messages should be sent when a message is received, Messenger Plus! compares the time of the last ChatWndSendMessage event with the current time. If it is less than 1 second, the message is considered to come from the current user and the previously recorded time is reset. Even if this method of analysis can seem too simplistic, it works in almost every scenario as it is extremely rare to receive a message sent by a contact between the time the "Send" button was pressed and the time the message of the current user was added to the window (as Messenger does not wait to receive a reply from the server before adding the message to the history control).
Sooo.. maybe not..
RE: OnEvent_ChatWndReceiveMessage Change by Spunky on 12-18-2007 at 02:20 AM

IIRC no contact data is sent except for the name, else Patchou would have given the option to use email rather than origin. Sorry


RE: OnEvent_ChatWndReceiveMessage Change by bigbob85 on 12-18-2007 at 02:25 AM

Ahh.. Bummer.. Thought this might be the case :(