Shoutbox

Clone + auto responder - 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: Clone + auto responder (/showthread.php?tid=87843)

Clone + auto responder by IA015 on 12-19-2008 at 12:34 PM

Hi.

I'm new at this forum and I got a question about if someone has made a clone script for msn as imitates the contacts message as they write and sends.

Like if you clone someone with Nickname, PM, DP etc, that it auto copying the message as they send to you and auto send it back about 1 sec after they have sent it.

Kinda fun script to mess with contacts :P


RE: Clone + auto responder by Pinecone on 12-22-2008 at 06:56 AM

For changing your name to your contact's name, you can use this script: http://www.msgplus.net/scripts/view/72-USay/

And the following (untested) script should use the usay script (link above) to change your name and re-send their message. It prefixes all of your messages with two non-breaking spaces so it knows not to re-send them.

code:
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MsgKind) {
    if (Message.substring(0,2) == '  ') return Message;
    ChatWnd.SendMessage('/usay ' + Message);
    return Message;
}
function OnEvent_ChatWndSendMessage(ChatWnd, Message) {
    if (Message.chatAt(0) != '/' && Message.charAt(0) != '/') Message = '  ' + Message;
    return Message;
}


Please note: There are probably better ways to check if the message was sent from you or not, and the method i used could mess with other scripts.