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

T3XT SCRiiPT
Author: Message:
toddy
Veteran Member
*****

Avatar
kcus uoy

Posts: 2573
Reputation: 49
– / Male / Flag
Joined: Jun 2004
RE: T3XT SCRiiPT
quote:
Originally posted by Chunk1993
Thanks so much :D
most people will hate you tho if you always type in caps.

anyways, updated it abit. so you can enable & disable it

code:
function OnGetScriptCommands ()
{
    commands  = "<ScriptCommands>";
    commands +=     "<Command>";
    commands +=         "<Name>startcaps</Name>";
    commands +=         "<Description>Replace lower Case to caps - Start</Description>";
    commands +=     "</Command>";
    commands +=     "<Command>";
    commands +=         "<Name>stopcaps</Name>";
    commands +=         "<Description>Replace lower Case to caps - Stop</Description>";
    commands +=     "</Command>";
    commands += "</ScriptCommands>";
    return commands;
}

var sEnabled = false;
function OnEvent_ChatWndSendMessage(ChatWnd, Message){
    switch (Message){
        case "/startcaps":
            sEnabled = true
            return '';
        case "/stopcaps":
            sEnabled = false;
            return '';
        default:
            if (sEnabled = true){
                Message = Message.replace(/a/gi,"A");
                Message = Message.replace(/b/gi,"B");
                Message = Message.replace(/c/gi,"C");
                Message = Message.replace(/d/gi,"D");
                Message = Message.replace(/e/gi,"3");
                Message = Message.replace(/f/gi,"F");
                Message = Message.replace(/g/gi,"G");
                Message = Message.replace(/h/gi,"H");
                Message = Message.replace(/i/gi,"ii");
                Message = Message.replace(/j/gi,"J");
                Message = Message.replace(/k/gi,"K");
                Message = Message.replace(/l/gi,"L");
                Message = Message.replace(/m/gi,"M");
                Message = Message.replace(/n/gi,"N");
                Message = Message.replace(/o/gi,"O");
                Message = Message.replace(/p/gi,"P");
                Message = Message.replace(/q/gi,"Q");
                Message = Message.replace(/r/gi,"R");
                Message = Message.replace(/s/gi,"S");
                Message = Message.replace(/t/gi,"T");
                Message = Message.replace(/u/gi,"U");
                Message = Message.replace(/v/gi,"V");
                Message = Message.replace(/w/gi,"W");
                Message = Message.replace(/x/gi,"X");
                Message = Message.replace(/y/gi,"Y");
                Message = Message.replace(/z/gi,"Z");
                return Message
        }
    }
}



This post was edited on 07-07-2007 at 05:25 PM by toddy.
07-07-2007 05:25 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
T3XT SCRiiPT - by Chunk1993 on 07-07-2007 at 04:34 PM
RE: T3XT SCRiiPT - by toddy on 07-07-2007 at 04:55 PM
RE: T3XT SCRiiPT - by Chunk1993 on 07-07-2007 at 04:59 PM
RE: T3XT SCRiiPT - by toddy on 07-07-2007 at 05:25 PM
RE: T3XT SCRiiPT - by Chunk1993 on 07-07-2007 at 05:27 PM
RE: T3XT SCRiiPT - by Volv on 07-07-2007 at 06:10 PM
RE: T3XT SCRiiPT - by John Anderton on 07-07-2007 at 06:15 PM
RE: T3XT SCRiiPT - by Chunk1993 on 07-07-2007 at 06:19 PM
RE: T3XT SCRiiPT - by toddy on 07-07-2007 at 08:33 PM
RE: T3XT SCRiiPT - by markee on 07-08-2007 at 02:56 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