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:
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Auto capitalize
quote:
Originally posted by Spunky
js 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(". ");
}

You will want to add spaces after the ".". The current code will turn "..." into ". . . ".

This post was edited on 09-28-2011 at 12:49 PM by matty.
09-28-2011 12:48 PM
Profile E-Mail 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