What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Capital Letter - More

Capital Letter - More
Author: Message:
FoxTheFox
New Member
*


Posts: 5
Joined: Jun 2006
O.P. Capital Letter - More
Hello

I modified the script to add a checking.
If the sentences finish by one "?","!","+" or ".", the script does not add the ".".

Edit your script :
code:
function OnEvent_ChatWndSendMessage(pChatWnd, sMessage){
if ( sMessage.charAt(sMessage.length - 1) == "?" || sMessage.charAt(sMessage.length - 1) == "!" || sMessage.charAt(sMessage.length - 1) == "." || sMessage.charAt(sMessage.length - 1) == "+" ){
sMessage = sMessage.substr(0,1).toUpperCase() + sMessage.substr(1)
}
else {
sMessage = sMessage.substr(0,1).toUpperCase() + sMessage.substr(1) + '.'
}
return sMessage;
}
07-22-2006 11:03 AM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »


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