What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Altering a sent message

Altering a sent message
Author: Message:
Robin4286
Junior Member
**


Posts: 21
Joined: Sep 2006
O.P. Altering a sent message
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?
09-16-2006 11:47 PM
Profile E-Mail PM Find Quote Report
cloudhunter
Senior Member
****


Posts: 536
Reputation: 18
37 / – / –
Joined: Dec 2005
RE: Altering a sent message
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
[Image: cloudy.jpg]
Sig by pirateok/marisaok/marisa ;)
quote:
Originally posted by Moulin Rouge
The greatest thing you'll ever learn, is just to love and be loved in return

6717 days, 22 hours, 37 minutes, 32 seconds ago
09-16-2006 11:52 PM
Profile E-Mail PM Find Quote Report
Robin4286
Junior Member
**


Posts: 21
Joined: Sep 2006
O.P. RE: Altering a sent message
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!
09-16-2006 11:55 PM
Profile E-Mail PM 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