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

Pages: (2): « First [ 1 ] 2 » Last »
StuffPlug Auto-Talker
Author: Message:
TrickZ
Junior Member
**


Posts: 27
Joined: Jul 2005
O.P. StuffPlug Auto-Talker
I'm not sure if this is the correct place to be asking this but...

Does anyone know how to make a script for an auto-talker for StuffPlug that would capitalise the first letter of every word.. So for example 'I Would Be Talking Like This'?

Let me know,

Thanks
08-02-2005 11:41 PM
Profile E-Mail PM Find Quote Report
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
RE: StuffPlug Auto-Talker
You'll need to learn either VBScript or JavaScript, then look at the files for the provided talkers. Then you should have enough info to write one ;)
[Image: spartaafk.png]
08-03-2005 05:02 PM
Profile PM Web Find Quote Report
Lou
Veteran Member
*****

Avatar

Posts: 2475
Reputation: 43
– / Male / Flag
Joined: Aug 2004
RE: StuffPlug Auto-Talker
if you need anymore help see the stuffplug forums at stuffplug.com :D
[Image: msghelp.net.png]
The future holds bright things in it\\\'s path, but only time will tell what they are and where they come from.
Messenger Stuff Forums
08-03-2005 05:07 PM
Profile PM Web Find Quote Report
TrickZ
Junior Member
**


Posts: 27
Joined: Jul 2005
O.P. RE: StuffPlug Auto-Talker
Hmm.. I was just wondering whether anyone knew JavaScript or VBScript already who could do it for me.. I mean, wouldn't learning either one of those languages take a long time?
08-03-2005 05:12 PM
Profile E-Mail PM Find Quote Report
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
RE: StuffPlug Auto-Talker
Not that long really. The amount you'd need to learn would take you about half an hour.
[Image: spartaafk.png]
08-03-2005 05:13 PM
Profile PM Web Find Quote Report
TrickZ
Junior Member
**


Posts: 27
Joined: Jul 2005
O.P. RE: StuffPlug Auto-Talker
Oh, alright then, I'll have a look around.. Can you recommend any good tutorials or sites?
08-03-2005 05:15 PM
Profile E-Mail PM Find Quote Report
TrickZ
Junior Member
**


Posts: 27
Joined: Jul 2005
O.P. RE: StuffPlug Auto-Talker
I just searched google and found this:

http://www.irt.org/script/531.htm

Will that do what I'm looking for?

Let me know

Thanks
08-03-2005 05:21 PM
Profile E-Mail PM Find Quote Report
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
RE: StuffPlug Auto-Talker
quote:
Originally posted by TrickZ
I just searched google and found this:

http://www.irt.org/script/531.htm

Will that do what I'm looking for?

Let me know

Thanks
It's certainly a good place to start ;) Now all you need to do is take that JavaScript and make it into a talker.
[Image: spartaafk.png]
08-04-2005 03:52 PM
Profile PM Web Find Quote Report
TrickZ
Junior Member
**


Posts: 27
Joined: Jul 2005
O.P. RE: StuffPlug Auto-Talker
Yeah, I've tried all that but I keep getting the same error.. The thing is, I don't know how to take that script and alter/adapt it so that it works with StuffPlug.. I would be really grateful if anyone could lend me a hand :)
08-04-2005 03:55 PM
Profile E-Mail PM Find Quote Report
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
Pages: (2): « First [ 1 ] 2 » Last »
« 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