What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Plug-Ins » StuffPlug Auto-Talker

StuffPlug Auto-Talker
Author: Message:
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
RE: StuffPlug Auto-Talker
code:
function talker(a) {
    var pattern = /(\w)(\w*)/; // a letter, and then one, none or more letters

    for (i = 0 ; i < a.length ; i ++ ) {
        var parts = a[i].match(pattern); // just a temp variable to store the fragments in.

        var firstLetter = parts[1].toUpperCase();
        var restOfWord = parts[2].toLowerCase();

        a[i] = firstLetter + restOfWord; // re-assign it back to the array and move on
    }
   
    document.form1.text1.value = a.join(' '); // join it back together
}
Should work well ;) Just save in a file called 'talker.name.js' and put it with the other talkers.

This post was edited on 08-04-2005 at 03:58 PM by RaceProUK.
[Image: spartaafk.png]
08-04-2005 03:57 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
StuffPlug Auto-Talker - by TrickZ on 08-02-2005 at 11:41 PM
RE: StuffPlug Auto-Talker - by RaceProUK on 08-03-2005 at 05:02 PM
RE: StuffPlug Auto-Talker - by Lou on 08-03-2005 at 05:07 PM
RE: StuffPlug Auto-Talker - by TrickZ on 08-03-2005 at 05:12 PM
RE: StuffPlug Auto-Talker - by RaceProUK on 08-03-2005 at 05:13 PM
RE: StuffPlug Auto-Talker - by TrickZ on 08-03-2005 at 05:15 PM
RE: StuffPlug Auto-Talker - by TrickZ on 08-03-2005 at 05:21 PM
RE: StuffPlug Auto-Talker - by RaceProUK on 08-04-2005 at 03:52 PM
RE: StuffPlug Auto-Talker - by TrickZ on 08-04-2005 at 03:55 PM
RE: StuffPlug Auto-Talker - by RaceProUK on 08-04-2005 at 03:57 PM
RE: StuffPlug Auto-Talker - by TrickZ on 08-04-2005 at 03:59 PM
RE: StuffPlug Auto-Talker - by TrickZ on 08-04-2005 at 04:03 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