What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » coding problem

coding problem
Author: Message:
whiz
Senior Member
****


Posts: 568
Reputation: 8
– / – / Flag
Joined: Nov 2008
RE: coding problem
If you want to change a message before you send it, you can do this:
js code:
function OnEvent_ChatWndSendMessage(ChatWnd, Message)
{
    return "This is the message that will be sent instead.";
}
Both you and the contact will see this message, but this only applies to message you send, not receive from a contact.

To change the appearance of a message from you or a contact, you can use this:
js code:
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MsgKind)
{
    return "This is the message that will be displayed instead.";
}
Only you will see this message - the other contact will see the message they sent.  Also, the changed message cannot be any longer than the original (otherwise, it'll be truncated).

To make an encrypter, you would need to encrypt the message in the SendMessage function, and then decrypt it in the ReceiveMessage function.  When you send a message, the other contact would receive the encrypted message, and (assuming they have the script installed on their computer) it would be decrypted in the conversation.  You would also see the decrypted message as it would be changed back as soon as it is sent.

This post was edited on 02-20-2010 at 01:00 PM by whiz.
02-20-2010 12:57 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
coding problem - by scripto on 02-20-2010 at 12:15 PM
RE: coding problem - by whiz on 02-20-2010 at 12:57 PM
RE: coding problem - by billyy on 02-20-2010 at 01:02 PM
RE: coding problem - by scripto on 02-21-2010 at 12:31 AM
RE: coding problem - by djdannyp on 02-21-2010 at 12:45 AM
RE: coding problem - by CookieRevised on 02-21-2010 at 02:59 AM


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