What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Capital letter & a dot

Capital letter & a dot
Author: Message:
Farkie
New Member
*


Posts: 4
Joined: Jun 2006
RE: Capital letter & a dot
code:
function OnEvent_ChatWndSendMessage(pChatWnd, sMessage){

lastchar = sMessage.substr(sMessage.length-1, sMessage.length);

switch(lastchar) {
case '?':
    haschar = 1;
    break;
case '}':
    haschar = 1;
    break;
case ')' :
    haschar = 1;
    break;
default:
    haschar = 2;
    break;
}

firstchar = sMessage.substr(0,1);

if(firstchar == '/') {
haschar = 4;
}

firstthree = sMessage.substr(0,7);

if(firstthree == '(!nor) ') {
haschar = 3;
}

if(haschar == '1') {
    sMessage = sMessage.substr(0,1).toUpperCase() + sMessage.substr(1);
} else if (haschar == '2') {
    sMessage = sMessage.substr(0,1).toUpperCase() + sMessage.substr(1) + '.';
} else if (haschar == '3') {
    sMessage = sMessage.substr(7);
}
     return sMessage;
}



I was working on a script like this lol, never realeased it though..

Usage:
(!nor) text - produces: text
text - produces: Text.
text? - produces: Text? (example a question)
text} - produces: Text} (example showing code)
text) - produces: Text) (most emoticons!)
/command parameter - produces: (result from command)

Hows that :)

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

Messages In This Thread
Capital letter & a dot - by Bmw1000c on 06-27-2006 at 03:48 PM
RE: Capital letter & a dot - by Lou on 06-27-2006 at 03:56 PM
RE: Capital letter & a dot - by Twozzok on 06-27-2006 at 03:57 PM
RE: Capital letter & a dot - by qgroessl on 06-27-2006 at 03:58 PM
RE: Capital letter & a dot - by Mike on 06-27-2006 at 04:01 PM
RE: Capital letter & a dot - by Menthix on 06-27-2006 at 04:05 PM
RE: Capital letter & a dot - by matty on 06-27-2006 at 04:06 PM
RE: Capital letter & a dot - by Bmw1000c on 06-27-2006 at 04:13 PM
RE: Capital letter & a dot - by upsfeup on 06-27-2006 at 04:15 PM
RE: Capital letter & a dot - by hmaster on 06-27-2006 at 04:15 PM
RE: Capital letter & a dot - by Bmw1000c on 06-27-2006 at 04:27 PM
RE: Capital letter & a dot - by upsfeup on 06-27-2006 at 04:31 PM
RE: Capital letter & a dot - by Bmw1000c on 06-27-2006 at 04:34 PM
RE: Capital letter & a dot - by steve_xrcc on 06-30-2006 at 10:24 AM
RE: Capital letter & a dot - by upsfeup on 06-30-2006 at 12:19 PM
RE: Capital letter & a dot - by segosa on 06-30-2006 at 02:34 PM
RE: Capital letter & a dot - by Bmw1000c on 06-30-2006 at 04:06 PM
RE: Capital letter & a dot - by Sypher on 06-30-2006 at 04:20 PM
RE: Capital letter & a dot - by Bmw1000c on 06-30-2006 at 04:22 PM
RE: Capital letter & a dot - by Jellings on 06-30-2006 at 10:03 PM
RE: RE: Capital letter & a dot - by segosa on 07-01-2006 at 06:08 AM
RE: Capital letter & a dot - by steve_xrcc on 07-01-2006 at 06:10 AM
RE: Capital letter & a dot - by Bmw1000c on 07-01-2006 at 09:34 AM
RE: Capital letter & a dot - by Tartooob on 07-01-2006 at 11:59 AM
RE: Capital letter & a dot - by Alexcess on 07-01-2006 at 04:17 PM
RE: Capital letter & a dot - by Sypher on 07-01-2006 at 04:56 PM
RE: Capital letter & a dot - by hmaster on 07-01-2006 at 04:59 PM
RE: RE: Capital letter & a dot - by Tartooob on 07-02-2006 at 12:00 PM
RE: Capital letter & a dot - by Dark_Nightmare on 07-02-2006 at 08:20 PM
RE: RE: Capital letter & a dot - by Tartooob on 07-03-2006 at 10:13 AM
RE: Capital letter & a dot - by dylan! on 07-02-2006 at 08:43 PM
RE: Capital letter & a dot - by Mentality on 07-02-2006 at 09:03 PM
RE: Capital letter & a dot - by dylan! on 07-02-2006 at 09:11 PM
RE: Capital letter & a dot - by Mentality on 07-02-2006 at 09:22 PM
RE: Capital letter & a dot - by Sunshine on 07-03-2006 at 04:23 PM
RE: RE: Capital letter & a dot - by Dark_Nightmare on 07-04-2006 at 02:25 PM
RE: Capital letter & a dot - by Sunshine on 07-04-2006 at 02:37 PM
RE: Capital letter & a dot - by Jellings on 07-04-2006 at 04:22 PM
RE: Capital letter & a dot - by Farkie on 07-04-2006 at 10:21 PM
RE: Capital letter & a dot - by AmbulanceX on 07-08-2006 at 03:27 PM
RE: Capital letter & a dot - by AmbulanceX on 07-08-2006 at 04:03 PM
RE: Capital letter & a dot - by XAaronX on 07-29-2006 at 02:38 AM


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