|
|
|||||||
| Computers & Information Technologies « Everything related to computers and internet. » |
![]() |
|
|
Share | Thread Tools | Search this Thread |
|
|
#1 |
|
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
|
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:
}
}
|
|
|
|
|
|
#2 |
|
Registered Member
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
|
can u add more details , cuz im sure many ppl like me are looking at this as Chinese
|
|
|
|
| The Following User Says Thank You to M|ch For This Useful Post: | SysTaMatIcS (07-13-2008) |
|
|
#3 |
|
Registered Member
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
|
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 |
|
|
|
| The Following User Says Thank You to Malek For This Useful Post: | M|ch (07-12-2008) |
|
|
#4 |
|
Registered Member
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
|
Nice, but you can also use MSN Discovery Live, it does the same thing
|
|
|
|
| The Following User Says Thank You to chaingang_100 For This Useful Post: | Justin (07-13-2008) |
|
|
#5 |
|
Registered Member
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
|
And btw, how we can use the script after adding it to msn plus?
|
|
|
|
|
|
#6 |
|
Registered Member
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
|
|
|
|
|
| The Following User Says Thank You to Malek For This Useful Post: | chaingang_100 (07-13-2008) |
|
|
#7 |
|
Registered Member
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
|
i added the script , tried the /usay hi , it ddnt work
__________________
problems of performance appraisal is that it sucks to memorize them |
|
|
|
|
|
#8 |
|
Registered Member
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
|
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
|
|
|
|
|
|
#9 |
|
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
|
|
|
|
|
![]() |
|
| Tags |
| code, mimic, msn |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|