The OnEvent_ChatWndSendMessage event is fired every time the current user sends a message in a chat window.
[string] OnEvent_ChatWndSendMessage( [object] ChatWnd, [string] Message );
A string containing the message to be sent instead of Message. If you do not want to modify the message, simply return Message without changing it. No size restriction applies to the new message except for the maximum size allowed by Messenger. If the event handler returns an empty string, the message is ignored and not sent to the server.
This event is generated after Messenger Plus! checks the message for quick texts but before searching for commands or tags. The only exception is for the "/text" command, which, if specified, forces the message to be sent without any kind of modification, including those made by scripts.
Event Source | Windows Live Messenger |
---|---|
Availability | Messenger Plus! Live 4.00 |