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

[Request] Font
Author: Message:
alexp2_ad
Scripting Contest Winner
****

Avatar
Who love the chocolate?

Posts: 691
Reputation: 26
37 / Male / –
Joined: May 2004
Status: Away
RE: [Request] Font
EDIT:  Damn, sorry, didn't see that saralk. :(  I'll delete mine if you want. :/

It's probably been done in one of the scripts already but sure, here ya go:

code:
function OnEvent_ChatWndSendMessage(pChatWnd,sMessage){
    if(sMessage.substr(0,8)=='/altcase'){
        sMessage = sMessage.substr(8);
        var newmessage = '';
        var uppercase = false;
        for(i=0;i<sMessage.length;i++){
            var charac = sMessage.charAt(i);
            if(uppercase){
                charac = charac.toUpperCase();
                uppercase = false;
            }
            else{
                charac = charac.toLowerCase();
                uppercase = true;
            }
            newmessage+=charac;
        }
        return newmessage;
    }
    else{
        return sMessage;
    }
}

function OnGetScriptCommands()
{
    var ScriptCommands = "<ScriptCommands>";
    ScriptCommands    +=     "<Command>";
    ScriptCommands    +=         "<Name>altcase</Name>";
    ScriptCommands    +=         "<Description>Alternates the case of the sent message</Description>";
    ScriptCommands    +=         "<Parameters>&lt;message&gt;</Parameters>";
    ScriptCommands    +=     "</Command>";
    ScriptCommands    += "</ScriptCommands>";

    return ScriptCommands;
}

There you go. :)

It uses /altcase command to send a message with annoying cases. :P

This post was edited on 09-07-2006 at 06:06 PM by alexp2_ad.
09-07-2006 06:04 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Request] Font - by Vimto on 09-07-2006 at 05:37 PM
RE: [Request] Font - by saralk on 09-07-2006 at 05:58 PM
RE: [Request] Font - by alexp2_ad on 09-07-2006 at 06:04 PM
RE: [Request] Font - by Vimto on 09-07-2006 at 06:14 PM
RE: [Request] Font - by alexp2_ad on 09-07-2006 at 06:23 PM
RE: [Request] Font - by Vimto on 09-07-2006 at 06:29 PM
RE: [Request] Font - by saralk on 09-07-2006 at 06:49 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