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 [problem 1 solved, onto number 2]
What did I do? (I cant remember)
* scott2010_h use Ctrl+Z  and Ctrl+Y to remember

It looks like I added an if in there by (Message.substring(0,1) != /)
EDIT:
(I tested it and it works for me)

EDIT2:
(It stoped working for me :( [Image: xso_huh.gif])

code:
var blnEnabled = false;

function OnGetScriptCommands ()
{
var 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){
if (Message.substring(0,1) != "/"){
   return "/colorize "+ Message;
}
}
}
}

This post was edited on 04-24-2007 at 12:38 AM by scott2010_h.
04-19-2007 08:57 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