Vcoderz Community
We create websites that have it all, beauty & brains
Lebanon Web Design & Development - Coddict
 

Go Back   Vcoderz Community > Computer Zone > Computers & Information Technologies

Notices

Computers & Information Technologies « Everything related to computers and internet. »

Reply
 
Share Thread Tools Search this Thread
Old 07-12-2008   #1
Google

 
Google's Avatar
 
Last Online: 05-30-2013
Join Date: Jan 2008
Posts: 1,788
Thanks: 10,018
Thanked 1,100 Times in 651 Posts
Groans: 1
Groaned at 6 Times in 6 Posts
Default 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:
    }
}


Google is offline   Reply With Quote
Old 07-12-2008   #2
M|ch
Registered Member
 
M|ch's Avatar
 
Last Online: 12-19-2011
Join Date: Jan 2007
Posts: 1,476
Thanks: 66
Thanked 884 Times in 516 Posts
Groans: 0
Groaned at 25 Times in 18 Posts
Default Re: MSN Mimic code!

can u add more details , cuz im sure many ppl like me are looking at this as Chinese
M|ch is offline   Reply With Quote
The Following User Says Thank You to M|ch For This Useful Post:
SysTaMatIcS (07-13-2008)
Old 07-12-2008   #3
Malek
Registered Member
Tetris Champion
 
Malek's Avatar
 
Last Online: 06-22-2023
Join Date: Sep 2006
Posts: 1,304
Thanks: 102
Thanked 1,147 Times in 619 Posts
Groans: 8
Groaned at 1 Time in 1 Post
Default 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
Malek is offline   Reply With Quote
The Following User Says Thank You to Malek For This Useful Post:
M|ch (07-12-2008)
Old 07-12-2008   #4
chaingang_100
Registered Member
 
chaingang_100's Avatar
 
Last Online: 10-23-2012
Join Date: May 2007
Posts: 733
Thanks: 521
Thanked 394 Times in 240 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Default Re: MSN Mimic code!

Nice, but you can also use MSN Discovery Live, it does the same thing
chaingang_100 is offline   Reply With Quote
The Following User Says Thank You to chaingang_100 For This Useful Post:
Justin (07-13-2008)
Old 07-12-2008   #5
chaingang_100
Registered Member
 
chaingang_100's Avatar
 
Last Online: 10-23-2012
Join Date: May 2007
Posts: 733
Thanks: 521
Thanked 394 Times in 240 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Default Re: MSN Mimic code!

And btw, how we can use the script after adding it to msn plus?
chaingang_100 is offline   Reply With Quote
Old 07-12-2008   #6
Malek
Registered Member
Tetris Champion
 
Malek's Avatar
 
Last Online: 06-22-2023
Join Date: Sep 2006
Posts: 1,304
Thanks: 102
Thanked 1,147 Times in 619 Posts
Groans: 8
Groaned at 1 Time in 1 Post
Default Re: MSN Mimic code!

Quote:
Originally Posted by chaingang_100 View Post
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.
Malek is offline   Reply With Quote
The Following User Says Thank You to Malek For This Useful Post:
chaingang_100 (07-13-2008)
Old 07-13-2008   #7
SysTaMatIcS
Registered Member
 
SysTaMatIcS's Avatar
 
Last Online: 10-14-2022
Join Date: Dec 2006
Posts: 10,467
Thanks: 14,136
Thanked 4,244 Times in 2,547 Posts
Groans: 186
Groaned at 198 Times in 120 Posts
Default Re: MSN Mimic code!

i added the script , tried the /usay hi , it ddnt work
__________________
problems of performance appraisal is that it sucks to memorize them
SysTaMatIcS is offline   Reply With Quote
Old 07-13-2008   #8
coolmind66
Registered Member
 
coolmind66's Avatar
 
Last Online: 07-04-2009
Join Date: May 2008
Posts: 172
Thanks: 51
Thanked 56 Times in 42 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Default 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
coolmind66 is offline   Reply With Quote
Old 07-13-2008   #9
Google

 
Google's Avatar
 
Last Online: 05-30-2013
Join Date: Jan 2008
Posts: 1,788
Thanks: 10,018
Thanked 1,100 Times in 651 Posts
Groans: 1
Groaned at 6 Times in 6 Posts
Default Re: MSN Mimic code!

Quote:
Originally Posted by SysTaMatIcS View Post
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...
Google is offline   Reply With Quote
Reply

  Vcoderz Community > Computer Zone > Computers & Information Technologies

Tags
code, mimic, msn



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:15 PM.


Lebanon web design and development
Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Share