Shoutbox

Altering a sent message - 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: Scripting (/forumdisplay.php?fid=39)
+----- Thread: Altering a sent message (/showthread.php?tid=66343)

Altering a sent message by Robin4286 on 09-16-2006 at 11:47 PM

is there a way to catch a message that you send and alter it? So something like you want every message to have _,.-+ put before it every time you send a message? Is there a way you can make it totally change the message, like if you send hello, it changes it to hi?


RE: Altering a sent message by cloudhunter on 09-16-2006 at 11:52 PM

Very easy.

code:
function OnEvent_ChatWndSendMessage(Origin, ChatWnd)
{
if (Message == "message")
{
replace = "replace";
return replace;
}
}


Of course you can other ways of replacing and checking messages, but thats the general jist - the return in the function.

Cloudy
RE: Altering a sent message by Robin4286 on 09-16-2006 at 11:55 PM

Man, I really don't know how to thank you cloud, youve given me like 4 answers thus far. Stick with messenger programming, youre really good at it!