What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » anyone know how to make a script that can change contact's name?

anyone know how to make a script that can change contact's name?
Author: Message:
SourSpud
Junior Member
**

Avatar
spud, spud, spud, spoon.

Posts: 58
35 / Male / Flag
Joined: Nov 2009
RE: anyone know how to make a script that can change contact's name?
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? :)

This post was edited on 12-15-2009 at 09:01 AM by SourSpud.
12-15-2009 07:53 AM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
anyone know how to make a script that can change contact's name? - by cutykaty1991 on 12-14-2009 at 10:00 AM
RE: anyone know how to make a script that can change contact's name? - by Th3rmal on 12-14-2009 at 10:11 AM
RE: anyone know how to make a script that can change contact's name? - by SourSpud on 12-15-2009 at 07:53 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