What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Release] Imitate Contacts!

[Release] Imitate Contacts!
Author: Message:
f1utils
New Member
*


Posts: 2
Joined: Jun 2006
RE: [Release] Imitate Contacts!
    Hello,
    I'm spanish and my english is very poor. Sorry.
    I have modified the script. I add a delay of one second after changing my name by the one of my contact.
    I have tested it with a conversation and a contact and works.

    The code:

code:

var myWnd;
var myName;
var myMessage;

function OnEvent_Initialize(MessengerStart) {
    wait = false;
}

function OnEvent_ChatWndSendMessage(Wnd,Msg) {
    if(Msg.length > 8 && wait == false) {
        if(Msg.substr(0,8) == "!imitate") {
            var WndContacts = Wnd.Contacts;
            if(WndContacts.Count == 1) {
                var e = new Enumerator(WndContacts);
                var Cnt = e.item();
                var Tmpname = Messenger.MyName;
                myName = Messenger.MyName;
                myWnd = Wnd;
                myMessage = Msg.substr(9,Msg.length-9);
                Messenger.MyName = Cnt.Name; wait = true;
                MsgPlus.AddTimer('myTimer', 1000);
            }
            return "";
        }
    }
}

function OnEvent_Timer(TimerId)
{
    if(TimerId == 'myTimer')
    {
        myWnd.SendMessage(myMessage);
        Messenger.MyName = myName;
        wait = false;
    }
}


06-29-2006 01:11 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Release] Imitate Contacts! - by Fox-NL on 06-27-2006 at 07:33 PM
RE: [Release] Imitate Contacts! - by JonnyT on 06-27-2006 at 07:37 PM
RE: [Release] Imitate Contacts! - by pauleapo71 on 06-27-2006 at 07:56 PM
RE: [Release] Imitate Contacts! - by Max on 06-27-2006 at 08:01 PM
RE: [Release] Imitate Contacts! - by Zahid™ on 06-27-2006 at 08:03 PM
RE: [Release] Imitate Contacts! - by ykz on 06-27-2006 at 08:09 PM
RE: [Release] Imitate Contacts! - by Voldemort on 06-27-2006 at 08:13 PM
RE: [Release] Imitate Contacts! - by Zayl on 06-27-2006 at 08:20 PM
RE: [Release] Imitate Contacts! - by Thor on 06-27-2006 at 08:25 PM
RE: [Release] Imitate Contacts! - by herbert7890 on 06-27-2006 at 08:29 PM
RE: [Release] Imitate Contacts! - by upsfeup on 06-27-2006 at 08:44 PM
RE: [Release] Imitate Contacts! - by herbert7890 on 06-27-2006 at 08:52 PM
RE: [Release] Imitate Contacts! - by Fox-NL on 06-27-2006 at 08:54 PM
RE: [Release] Imitate Contacts! - by herbert7890 on 06-27-2006 at 08:58 PM
RE: [Release] Imitate Contacts! - by Fr@nKy on 06-27-2006 at 09:13 PM
RE: [Release] Imitate Contacts! - by Zahid™ on 06-27-2006 at 09:20 PM
RE: [Release] Imitate Contacts! - by Jellings on 06-27-2006 at 10:02 PM
RE: [Release] Imitate Contacts! - by Jimcando on 06-27-2006 at 11:29 PM
RE: [Release] Imitate Contacts! - by Fuzzles on 06-27-2006 at 11:31 PM
RE: [Release] Imitate Contacts! - by f1utils on 06-29-2006 at 01:11 PM
RE: [Release] Imitate Contacts! - by Sypher on 06-29-2006 at 01:55 PM
RE: [Release] Imitate Contacts! - by Zayl on 06-29-2006 at 02:11 PM
RE: [Release] Imitate Contacts! - by Zahid™ on 06-29-2006 at 03:04 PM
RE: [Release] Imitate Contacts! - by deAd on 06-29-2006 at 03:07 PM
RE: [Release] Imitate Contacts! - by Zayl on 06-29-2006 at 03:20 PM
RE: RE: [Release] Imitate Contacts! - by f1utils on 06-29-2006 at 08:00 PM
RE: [Release] Imitate Contacts! - by Zayl on 06-29-2006 at 05:34 PM
RE: [Release] Imitate Contacts! - by Thor on 06-29-2006 at 05:45 PM
RE: [Release] Imitate Contacts! - by kall on 06-29-2006 at 11:02 PM
RE: [Release] Imitate Contacts! - by tinpiliycfa on 06-30-2006 at 11:02 AM
RE: [Release] Imitate Contacts! - by turix on 06-30-2006 at 11:54 AM
RE: [Release] Imitate Contacts! - by tinpiliycfa on 06-30-2006 at 12:38 PM
RE: [Release] Imitate Contacts! - by tinpiliycfa on 06-30-2006 at 12:39 PM
RE: [Release] Imitate Contacts! - by tinpiliycfa on 06-30-2006 at 01:06 PM
RE: [Release] Imitate Contacts! - by bloodspill on 07-09-2006 at 11:44 AM
RE: [Release] Imitate Contacts! - by Felu on 07-09-2006 at 11:46 AM
RE: [Release] Imitate Contacts! - by giac jr on 07-09-2006 at 11:50 AM
RE: [Release] Imitate Contacts! - by snAke_LeAder on 07-10-2006 at 06:19 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