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

Scripting Help
Author: Message:
Thunder708
Junior Member
**


Posts: 15
Joined: Jan 2008
O.P. Scripting Help
I have made a script that quickly uses the commands that the computer details script uses (http://www.msgpluslive.net/scripts/view/14-Computer-Details/) but when i run the script it says

The Command You Entered Was Not Recognised
If The Message Was Not Meant To Be A Command, Insert A Second '/' At It's Beginning

Thing Is It Still Runs The Script

How Do You Make A Script To Be Detected As A Usable Script

Can Anyone help me please?

Thanks To Anyone who does.

so far i have this code it accepts the "/details" command now but it says true instead of what it is supposed to say

code:
//Script created by Michael Braithwaite


function OnGetScriptCommands ()
{
commands  = "<ScriptCommands>";
commands +=     "<Command>";
commands +=         "<Name>Details</Name>";
commands +=         "<Description>Quick Way Of Showing Your Computer Details If You Have The Computer Details Script Installed (http://www.msgpluslive.net/scripts/view/14-Computer-Details/)</Description>";
commands +=     "</Command>";
commands += "</ScriptCommands>";
return commands;
}

function OnEvent_ChatWndSendMessage(ChatWnd, Message)
{
    var CMD = Message.split(" ", 1).toString();
        switch(CMD.toLowerCase()){
            case "/details" : return Command_details();
        }
function Command_details ()
{
var OS = (!OS);

return "My Operating System Is ("+OS+")"
}
}


i am only testing it out on one command from the computer details script for time being, once i have this little problem sorted i will expand it to show all commands.

This post was edited on 01-30-2008 at 08:46 PM by Thunder708.
01-30-2008 05:35 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Scripting Help - by Thunder708 on 01-30-2008 at 05:35 PM
RE: Scripting Help - by matty on 01-30-2008 at 11:18 PM
RE: Scripting Help - by Thunder708 on 01-30-2008 at 11:24 PM
RE: Scripting Help - by deAd on 01-30-2008 at 11:27 PM
RE: Scripting Help - by Thunder708 on 01-31-2008 at 11:59 AM
RE: Scripting Help - by Matti on 01-31-2008 at 05:03 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