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

Pages: (5): « First « 1 2 [ 3 ] 4 5 » Last »
Capital letter & a dot
Author: Message:
segosa
Community's Choice
*****


Posts: 1407
Reputation: 92
Joined: Feb 2003
RE: RE: Capital letter & a dot
quote:
Originally posted by Jellings
[Image: 169qp6w.jpg]

would it be possible to make it capitalise the first word when a new line is started?


Try change

code:
if (isin(sentences[i-1].charAt(sentences[i-1].length - 1), ".?!"))


to

code:
if (isin(sentences[i-1].charAt(sentences[i-1].length - 1), ".?!\n"))


Not sure if it'll work though.
The previous sentence is false. The following sentence is true.
07-01-2006 06:08 AM
Profile PM Find Quote Report
steve_xrcc
New Member
*


Posts: 2
Joined: Jun 2006
RE: Capital letter & a dot
I thought of a part of an algorithm -
If last character := A..Z or a..z or 0..9 then add a dot at end of sentence

I think it would be shorter to write than something else, right?
07-01-2006 06:10 AM
Profile E-Mail PM Find Quote Report
Bmw1000c
Junior Member
**

Avatar
yay!

Posts: 45
44 / Male / –
Joined: May 2004
O.P. RE: Capital letter & a dot
it works like a charm ;)
I'm portuguese!
07-01-2006 09:34 AM
Profile E-Mail PM Find Quote Report
Tartooob
Junior Member
**

Avatar

Posts: 44
Joined: Jul 2005
RE: Capital letter & a dot
Well works fine but it wont let me use my emotions properly or use commands such as /ping.

Can anyone fix please ?
07-01-2006 11:59 AM
Profile PM Find Quote Report
Alexcess
New Member
*


Posts: 6
Joined: Dec 2003
RE: Capital letter & a dot
Hi! I have tried it and yes, it wont let you use the / commands, but if you set an space after those, you will be able to use them.

Instead of "/ping", try "/ping "


Oh! But when you have this script enabled, you can't use the plus! downloaded sounds... sad thing:(

This post was edited on 07-02-2006 at 06:41 AM by Alexcess.
07-01-2006 04:17 PM
Profile E-Mail PM Find Quote Report
Sypher
Senior Member
****

Avatar

Posts: 623
Reputation: 15
37 / Male / Flag
Joined: Apr 2003
RE: Capital letter & a dot
It needs some checking:
- For sentences starting with /
- For sentences starting with www. or http://
Messenger Plus Beta Tester
Plus! Live Faq Maintainer
07-01-2006 04:56 PM
Profile PM Find Quote Report
hmaster
Senior Member
****

Avatar

Posts: 716
Reputation: 24
33 / Male / Flag
Joined: Nov 2004
RE: Capital letter & a dot
code:
if (sMessage.charAt(0) != '/' && sMessage.substr(0, 4) != 'www.' && sMessage.substr(0, 7) != 'http://') {
//code here
}

*-)
[Image: sig.png]
07-01-2006 04:59 PM
Profile PM Web Find Quote Report
Tartooob
Junior Member
**

Avatar

Posts: 44
Joined: Jul 2005
RE: RE: Capital letter & a dot
quote:
Originally posted by hmaster
code:
if (sMessage.charAt(0) != '/' && sMessage.substr(0, 4) != 'www.' && sMessage.substr(0, 7) != 'http://') {
//code here
}

*-)

it stopped the script from working when I added that..
07-02-2006 12:00 PM
Profile PM Find Quote Report
Dark_Nightmare
New Member
*


Posts: 2
33 / Male / –
Joined: Jul 2006
RE: Capital letter & a dot
Success! After much fiddling, i've done 75% of what you guys want/need.

Typing "/" will make the rest of the message untouched by the punctuation changes.
Automatically makes the letter after a space after a "!", "?" and "." a capital.
    (ie   woot. i rocks! yep!
                 becomes
            Woot. I rocks! Yep!)

Automatically ends any open-ended sentences (ie, without any ending punctuation) with a full stop.


All that jazz...

Except, i cannot configure it so that it ignores messages starting with  "www." "http:" etc...


http://pastebin.ca/77236


By the way - i mostly used the guy a few post up's code, but tweaked it a bit.


edit:  It does affect custom emoticons, unfortunately, but only if its the first character. Just press space before entering an emoticons. :D

This post was edited on 07-02-2006 at 08:34 PM by Dark_Nightmare.
07-02-2006 08:20 PM
Profile E-Mail PM Find Quote Report
dylan!
Senior Member
****

Avatar
l33t p4int3r

Posts: 665
Reputation: 30
– / Male / Flag
Joined: Jan 2005
RE: Capital letter & a dot
hmm all I did was added the above 2 posts codes together and I didn't get any errors
07-02-2006 08:43 PM
Profile E-Mail PM Find Quote Report
Pages: (5): « First « 1 2 [ 3 ] 4 5 » 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