What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Slight problem [Seems unsolvable, best forgotten]

Slight problem [Seems unsolvable, best forgotten]
Author: Message:
scott2010_h
Full Member
***

Avatar

Posts: 187
Reputation: 10
32 / Male / Flag
Joined: Dec 2005
Status: Away
RE: Slight problem ^^;
It looks like you forgot a few brackets
Hope this helps :)
code:
var blnEnabled = false;

function OnGetScriptCommands ()
{
commands  = "<ScriptCommands>";
commands +=     "<Command>";
commands +=         "<Name>cstart</Name>";
commands +=         "<Description>Start Auto Colorize</Description>";
commands +=     "</Command>";
commands +=     "<Command>";
commands +=         "<Name>cstop</Name>";
commands +=         "<Description>Stop Auto Colorize</Description>";
commands +=     "</Command>";
commands += "</ScriptCommands>";
return commands;
}


function OnEvent_ChatWndSendMessage(ChatWnd, Message){
switch (Message){
case "/cstart":
blnEnabled = true;
return '';
case "/cstop":
blnEnabled = false;
return '';
default:
if (blnEnabled == true){
(Message.substring(0,1) != "/")
   return "/colorize "+Message;
   return Message;
}
}
}
04-19-2007 08:15 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Slight problem [Seems unsolvable, best forgotten] - by Red King on 04-19-2007 at 07:41 PM
RE: Slight problem ^^; - by scott2010_h on 04-19-2007 at 08:15 PM
RE: Slight problem ^^; - by Red King on 04-19-2007 at 08:20 PM
RE: Slight problem [problem 1 solved, onto number 2] - by scott2010_h on 04-19-2007 at 08:57 PM
RE: Slight problem [problem 1 solved, onto number 2] - by Red King on 04-19-2007 at 09:02 PM
RE: Slight problem [problem 1 solved, onto number 2] - by scott2010_h on 04-19-2007 at 09:06 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