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

Auto capitalize
Author: Message:
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
35 / Male / Flag
Joined: Aug 2006
RE: Auto capitalize
Javascript code:
function OnEvent_ChatWndSendMessage(ChatWnd, Message){
    Message = Message.split(".");
    for(var i in Message){
        Message[i] = Message[i].replace(/(^\s+)/, '');
        Message[i] = " " + Message[i].substring(0, 1).toUpperCase() + Message[i].substring(1);
    }
    return Message.join(".");
}


Probably not the fastest or best way to do it, but I couldn't find a way to do it with pure regex
<Eljay> "Problems encountered: shit blew up" :zippy:
09-28-2011 08:17 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Auto capitalize - by mplusfan on 09-28-2011 at 01:09 AM
RE: Auto capitalize - by Spunky on 09-28-2011 at 08:17 AM
RE: Auto capitalize - by mplusfan on 09-28-2011 at 12:33 PM
RE: Auto capitalize - by matty on 09-28-2011 at 12:48 PM
RE: Auto capitalize - by Spunky on 09-28-2011 at 03:22 PM
RE: Auto capitalize - by CookieRevised on 09-28-2011 at 06:00 PM
RE: Auto capitalize - by Spunky on 09-28-2011 at 06:12 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