What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Problem with my script.

Problem with my script.
Author: Message:
Felu
Veteran Member
*****


Posts: 2223
Reputation: 72
30 / Male / Flag
Joined: Apr 2006
Status: Away
RE: Problem with my script.
quote:
Originally posted by TheTomb
I still get

'The command you entered was not recognised'
Hmm... The code i gave works perfectly fine. Can you please post the code you are using?
quote:
Originally posted by vikke
Try
code:
var commands = new String();
commands+='<ScriptCommands>';
commands+='<Command>';
commands+='<Name>interpretate</Name>';
commands+='<Description>Interpretate your contact by stealing their name!</Description>';
commands+='<Parameters>';
commands+='</Parameters>';
commands+='</Command>';
return commands;

That wont work [Image: msn_sad.gif].

Edit
   
quote:
Originally posted by -!Felu!-
code:
    function OnGetScriptCommands(){
    var commands = '<ScriptCommands>';
    commands+='';
    commands+='interpretate';
    commands+='Interpretate your contact by stealing their name!';
    commands+='';
    commands+='';
    commands+='';
    return commands;
    }

    function OnEvent_ChatWndSendMessage(ChatWnd, Message)
    {
    if(Message.substr(0,13) == "/interpretate")
    {
    var Contacts = ChatWnd.Contacts;
    var e = new Enumerator(Contacts); for(; !e.atEnd(); e.moveNext())
    var Blah = e.item()
    Messenger.MyName = Blah.Name;
    MsgPlus.DisplayToast("Success!", "You have the same name as your contact!");
    return '';
    }
    }

    Use that code


   
quote:
Originally posted by Eljay
code:
function OnGetScriptCommands(){
    var commands = '<ScriptCommands>';
    commands+='';
    commands+='interpretate';
    commands+='Interpretate your contact by stealing their name!';
    commands+='';
    commands+='';
    commands+='';
    return commands;
    }

    function OnEvent_ChatWndSendMessage(ChatWnd, Message){
    if(Message.substr(0,13) == "/interpretate"){
    for(e = new Enumerator(ChatWnd.Contacts); !e.atEnd(); e.moveNext()){
    var Contact = e.item()
    Messenger.MyName = Contact.Name;
    MsgPlus.DisplayToast("Success!", "You have the same name as your contact!");
    return '';
    }
    }
    }



Whats the difference Eljay? Just Blah is Contact and ChatWnd.Contacts is defined as Contacts in my code and your code directly uses ChatWnd.Contacts :undecided:.

This post was edited on 08-12-2006 at 08:37 AM by Felu.
08-12-2006 08:34 AM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Problem with my script. - by TheTomb on 08-11-2006 at 07:10 PM
RE: Problem with my script. - by matty on 08-11-2006 at 07:12 PM
RE: Problem with my script. - by TheTomb on 08-11-2006 at 07:14 PM
RE: Problem with my script. - by Felu on 08-11-2006 at 07:26 PM
RE: Problem with my script. - by TheTomb on 08-12-2006 at 08:15 AM
RE: Problem with my script. - by vikke on 08-12-2006 at 08:17 AM
RE: Problem with my script. - by TheTomb on 08-12-2006 at 08:20 AM
RE: Problem with my script. - by vikke on 08-12-2006 at 08:23 AM
RE: Problem with my script. - by Eljay on 08-12-2006 at 08:26 AM
RE: Problem with my script. - by Felu on 08-12-2006 at 08:34 AM
RE: Problem with my script. - by vikke on 08-12-2006 at 08:38 AM
RE: Problem with my script. - by TheTomb on 08-12-2006 at 08:39 AM
RE: Problem with my script. - by Felu on 08-12-2006 at 08:42 AM
RE: Problem with my script. - by Eljay on 08-12-2006 at 08:50 AM
RE: Problem with my script. - by TheTomb on 08-12-2006 at 09:05 AM
RE: Problem with my script. - by Shondoit on 08-12-2006 at 01:44 PM
RE: Problem with my script. - by Felu on 08-12-2006 at 02:16 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