What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Need help

Need help
Author: Message:
mickael9
Full Member
***


Posts: 117
Reputation: 3
32 / Male / Flag
Joined: Jul 2005
RE: Need help
quote:
Originally posted by Kroko
Hello.

I need help to my script.
The script should take the name from the person i chat with.

my code:
code:
function OnEvent_ChatWndSendMessage(ChatWnd,Message){

if(Message=="/tagnavn"){

var CntNm = Cnt.Name;

Messenger.MyName = CntNm;
return '';
}



But its only says that the commando not exsist when i press /tagnavn.

Pls help.

Hi,
code:
function OnEvent_ChatWndSendMessage(ChatWnd,Message)
{
    if(Message=="/tagnavn")
    {
        var e     = new Enumerator(ChatWnd.Contacts);
        var Cnt   = e.item(); // Take the first contact
       
        var CntNm = Cnt.Name;
       
        Messenger.MyName = CntNm;
        return '';
    }
} // Missing bracket


function OnGetScriptCommands()
{
    var cmds    = "<ScriptCommands>";
    cmds            += "<Command>";
    cmds                += "<Name>tagnavn</Name>";
    cmds                += "<Description>Steal contact name</Description>";
    cmds            += "</Command>";
    cmds       += "</ScriptCommands>";
    return cmds;
}

:D

This post was edited on 08-20-2006 at 10:57 AM by mickael9.
08-20-2006 10:53 AM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Need help - by Kroko on 08-20-2006 at 10:44 AM
RE: Need help - by SnuZZer on 08-20-2006 at 10:49 AM
RE: Need help - by ShawnZ on 08-20-2006 at 10:52 AM
RE: Need help - by mickael9 on 08-20-2006 at 10:53 AM


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