Vcoderz Community

Vcoderz Community (http://forum.vcoderz.com/index.php)
-   Computers & Information Technologies (http://forum.vcoderz.com/forumdisplay.php?f=6)
-   -   MSN Mimic code! (http://forum.vcoderz.com/showthread.php?t=13071)

Google 07-12-2008 11:19 PM

MSN Mimic code!
 
Use this script to impresonate as the contact you are talking with.
Messenger plus supports scripts...

Code:


STATE_INACTIVE = 0;
STATE_RUNNING = 1;
STATE_FINISHING = 2;

var cur_state = STATE_INACTIVE;
var original_name;
var contact_name;
var message_to_send;
var chat_window;
var retry_count;


function OnGetScriptCommands()
{
    var commands = '<ScriptCommands>';
        commands+='<Command>';
            commands+='<Name>Usay</Name>';
            commands+='<Description>Impresonate as the contact you are talking with.</Description>';
            commands+='<Parameters/>';
        commands+='</Command>';
    commands+='</ScriptCommands>';
    return commands;
}

function OnEvent_ChatWndSendMessage( ChatWnd, Message )
{
    chat_window = ChatWnd;
    Command = Message.split(' ')
    switch ( Command[0].toLowerCase() )
    {       
        case "/usay":
            i=1;
            message_to_send = '';
            while( Command[i] != null )
            {
                message_to_send += Command[i];
                i++                   
                if( Command[i] != null ) message_to_send += ' ';
            }
            if( ChatWnd.Contacts.Count == 1 )
            {
                var i = new Enumerator( ChatWnd.Contacts );
                var thedude = i.item();
                original_name = Messenger.MyName;
                contact_name = thedude.Name;
                cur_state = STATE_RUNNING;
                Messenger.MyName = contact_name;
            }
            Message = '';
            break;
        default:
    }
    return Message;
}

function OnEvent_MyNameChange( NewName )
{
    switch( cur_state )
    {
        case STATE_RUNNING:
            if( NewName == contact_name )
            {
                cur_state = STATE_FINISHING;
                retry_count = 3
                MsgPlus.AddTimer( 'sendmessage', 500 );
            }
            break;
        case STATE_FINISHING:
            if( NewName == original_name )
            {
                cur_state = STATE_INACTIVE;
                Debug.Trace( "NAME RESTORED" );
                MsgPlus.CancelTimer( 'restorename' );
            }
            break;
        case STATE_INACTIVE:
            //for some odd reason i get my contact name set again
            if( NewName == contact_name )
            {
                Messenger.MyName = original_name;
                MsgPlus.AddTimer( 'restorename', 500 );
            }
            break;
    }
}


function OnEvent_Timer( TimerId )
{
    switch( TimerId )
    {
        case 'restorename':
              Messenger.MyName = original_name;
              //do this until my name REALLY changes
              if( Messenger.MyName != original_name )
              {
                MsgPlus.AddTimer( 'restorename', 500 );
            }
            break;
        case 'sendmessage':
            chat_window.SendMessage( message_to_send );
            MsgPlus.AddTimer( 'restorename', 500 );
            break;
        default:
    }
}


M|ch 07-12-2008 11:33 PM

Re: MSN Mimic code!
 
can u add more details , cuz im sure many ppl like me are looking at this as Chinese lool

Malek 07-12-2008 11:36 PM

Re: MSN Mimic code!
 
This script allows u to talk as if ur the other person in the conversation.

Ex.

Im chatting with u:

so i put /usay hi

it appears M|ch says: hi , instead of Malek says : hi

chaingang_100 07-12-2008 11:39 PM

Re: MSN Mimic code!
 
Nice, but you can also use MSN Discovery Live, it does the same thing

chaingang_100 07-12-2008 11:46 PM

Re: MSN Mimic code!
 
And btw, how we can use the script after adding it to msn plus?

Malek 07-12-2008 11:59 PM

Re: MSN Mimic code!
 
Quote:

Originally Posted by chaingang_100 (Post 144997)
And btw, how we can use the script after adding it to msn plus?

Man as i said before u type /usay
then wat ever u want to say.

SysTaMatIcS 07-13-2008 12:19 AM

Re: MSN Mimic code!
 
i added the script , tried the /usay hi , it ddnt work

coolmind66 07-13-2008 08:23 AM

Re: MSN Mimic code!
 
as our comrade chaingang_100 said we can ur msn discovery it has man gr8 features in it !! and it's far more easy than applying the script !! but tx anyway :)

Google 07-13-2008 11:22 AM

Re: MSN Mimic code!
 
Quote:

Originally Posted by SysTaMatIcS (Post 145000)
i added the script , tried the /usay hi , it ddnt work


After you add the script, you have to enable it...
In the script preferences, it should be running and not stopped...


All times are GMT +1. The time now is 02:52 PM.

Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger