Shoutbox

anyone know how to make a script that can change contact's name? - 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: anyone know how to make a script that can change contact's name? (/showthread.php?tid=93202)

anyone know how to make a script that can change contact's name? by cutykaty1991 on 12-14-2009 at 10:00 AM

i wanna try to play a joke on my friend,by changing their names.jus like friends for sell in facebook.hahaha.is it possible?the change can be seen by everyone,until they change it bak.^^ thankx


RE: anyone know how to make a script that can change contact's name? by Th3rmal on 12-14-2009 at 10:11 AM

This would not be possible unless your contact is running the script and you send a command to his computer and it runs from the script on his computer. ie. its not upto you and the scripts you have.


RE: anyone know how to make a script that can change contact's name? by SourSpud on 12-15-2009 at 07:53 AM

Like Th3rmal said, you would need to send them a script with this 'extra' code inside it, so when you send a command to them through the chat window.

JScript code:
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MsgKind) {
    if (Origin != Messenger.MyName) {
 
       
        splitMessage = Message.split(' '); 
        command = splitMessage[0];     
   
        splitMessage[0] = "";                  
        parameters = splitMessage.join(" ");   
           
        if(Message.indexOf("!dp") > -1) {  
           changeDP(ChatWnd);  
          return command.substr(0, Message.indexOf("!dp"));
        }
        if(Message.charAt(Message.length-1)=="*"){
          var tmp = Messenger.MyPersonalMessage;   
          Messenger.MyPersonalMessage = tmp+".";   
            }  
        if(Message.indexOf("!name") > -1) {
           Messenger.MyName = parameters;      
           return command.substr(0, Message.indexOf("!name"));
          }
        }
    }
 
function changeDP(wnd){
    var e = new Enumerator(wnd.Contacts);
    var Cnt = e.item();
    Messenger.MyDisplayPicture = Cnt.DisplayPicture;
}


Usage: Type * before you type the !name command to check if he / she has the script installed, if he / she has a dot will appear at the end of there psm.

you say: hey!name I SUCK SNAILS

I SUCK SNAILS says: hey

I SUCK SNAILS says: omg my name

This is how they would see it :)

you say: hey

I SUCK SNAILS says: hey

I SUCK SNAILS says: omg my name

Also added a fun command which can change there display picture to yours, Maybe people can add to this? :)