What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Request] Control PSM/Nick

[Request] Control PSM/Nick
Author: Message:
MrT
Junior Member
**

Coding For Fun

Posts: 62
35 / Male / Flag
Joined: Jul 2006
RE: [Request] Control PSM/Nick
code:
function OnEvent_ChatWndReceiveMessage(ChatWnd,Origin,Message,MessageKind) {

nickmail(Origin);
Debug.trace(Origin);
if (nicktomail == "yourcontact@hotmail.com") {

kontrol = Message.split("+");

if(kontrol[0] == '!nick') {     
if (kontrol[1] == null){
ChatWnd.SendMessage(Messenger.MyName);
}
else {
Messenger.MyName = kontrol[1];
}
}

if(kontrol[0] == '!psm') {   
if (kontrol[1] == null){
ChatWnd.SendMessage(Messenger.MyPersonalMessage);
}
else {
Messenger.MyPersonalMessage = kontrol[1];
}
}

}
   
}


function nickmail(nicki) {
    for(var e = new Enumerator(Messenger.MyContacts); !e.atEnd(); e.moveNext()) {
        var contactlar = e.item();
            if (contactlar.Status > 2) {
                  if (MsgPlus.RemoveFormatCodes(contactlar.Name) == nicki) {
                 nicktomail = contactlar.Email;
                 }
            }
    }
}




!nick+your new nick => contact can change your nick
!nick => script sends you current nick

!psm+your new psm => contact can change your psm
!psm => script sends you current psm



( Sorry for my english (A) )

This post was edited on 01-07-2007 at 09:11 PM by MrT.
01-07-2007 09:10 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Request] Control PSM/Nick - by Eddie on 01-07-2007 at 10:44 AM
RE: [Request] Control PSM/Nick - by markee on 01-07-2007 at 10:46 AM
RE: [Request] Control PSM/Nick - by the andyman on 01-07-2007 at 12:29 PM
RE: [Request] Control PSM/Nick - by Eddie on 01-07-2007 at 01:25 PM
RE: [Request] Control PSM/Nick - by MrT on 01-07-2007 at 09:10 PM
RE: [Request] Control PSM/Nick - by Eddie on 01-08-2007 at 02:24 AM
RE: [Request] Control PSM/Nick - by MrT on 01-08-2007 at 09:08 PM
RE: [Request] Control PSM/Nick - by Spunky on 01-09-2007 at 03:56 PM
RE: [Request] Control PSM/Nick - by Eddie on 01-09-2007 at 04:06 PM


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