Shoutbox

[Release] Punctuator - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: [Release] Punctuator (/showthread.php?tid=69004)

[Release] Punctuator by Jimbo on 11-30-2006 at 05:13 PM

This script is an update from my original script -capitals and full stops
It adds a capital letter to the beggining of the message and a "." to the end only when there isn't a "?,/,!,;.';" etc
Hope you enjoy


RE: [Release] Punctuator by Pure_BY on 11-30-2006 at 11:03 PM

This seems kind of useless script to me :/


RE: [Release] Punctuator by Spunky on 11-30-2006 at 11:47 PM

It's not useless and it WILL appeal to a great number of people. I think it should have been posted in the old thread though as it's still the same script even if it's had a name change and been updated


RE: [Release] Punctuator by aNILEator on 12-01-2006 at 12:23 AM

OMG PURE_BY YOUR ALIVE!!!!!

and it's just a simple script to correctly punctuate :)


RE: [Release] Punctuator by Voldemort on 12-01-2006 at 12:40 AM

this was in messenger enchanter iirc....


RE: [Release] Punctuator by TechkNighT on 03-16-2007 at 11:28 AM

Is it possiple to skip "." after a Emoticon?
Thxz in advance!


RE: [Release] Punctuator by riahc4 on 03-21-2007 at 08:22 PM

Well maybe advance the script a bit..

If the first word is "How, could, where" then add a "?" instead of a "."

And make it multilanguage!


RE: [Release] Punctuator by Jimbo on 03-22-2007 at 07:42 AM

quote:
Originally posted by riahc4
Well maybe advance the script a bit..

If the first word is "How, could, where" then add a "?" instead of a "."

And make it multilanguage!

I'm sorry to say that I have stoppped all development with this script. I haven't got the time :\
If anyone wants to pick it up and improve they are are welcome to.
RE: [Release] Punctuator by vikke on 03-22-2007 at 02:10 PM

I can do some work on it, I think. It's a great idea, and a great script!
One improvement would be support for many sentences in same message, and add dot before smiley.

---
vikke


RE: [Release] Punctuator by the DtTvB on 03-22-2007 at 02:39 PM

Cool script, I sometimes use it also...

My suggestion:
    If the first word or a word right after a punctuation is "is|am|are|was|were|what|where|....." then append ? to the sentence instead of ".".


RE: [Release] Punctuator by Mizgoody2shoes92 on 06-23-2007 at 03:30 AM

Where is the Messenger Plus! logo on my contact list??????


RE: [Release] Punctuator by Zahid™ on 06-23-2007 at 08:18 AM

quote:
Originally posted by Mizgoody2shoes92
Where is the Messenger Plus! logo on my contact list??????
Try installing Messenger Plus Live again.
RE: [Release] Punctuator by Vampire_Kitty on 09-19-2007 at 07:31 PM

Thank you brilliant script, have been looking for this for a long time, was actually considering making my ownbut you've saved me the trouble :)


RE: [Release] Punctuator by TimJ07 on 01-30-2008 at 07:58 AM

Hey.. I've uninstalled and reinstalled WLM and MPL both and still cant find the logo to get this thing working... can anyone take a screenshot of what this thing is?  Thanks ahead of time.


RE: [Release] Punctuator by Swanny on 07-11-2008 at 07:45 AM

I was just wondering if it's normal to have to enter the settings again every time you open up Messenger? I'm guessing the problem isn't supposed to be there seeing as no one else has commented on it.


RE: [Release] Punctuator by aNILEator on 07-11-2008 at 08:34 AM

quote:
Originally posted by Swanny
I was just wondering if it's normal to have to enter the settings again every time you open up Messenger? I'm guessing the problem isn't supposed to be there seeing as no one else has commented on it.
nope never had that is there an error logged? or maybe it's settings directory/registry is unwritable or re-written at startup or something?
RE: [Release] Punctuator by Th3rmal on 07-11-2008 at 08:47 AM

If i had any scripting experience/knowledge  i would continue this script as it has alot of potential, but i dont so i'll hope someone else will do it :P


RE: [Release] Punctuator by Swanny on 07-11-2008 at 10:43 AM

quote:
Originally posted by aNILEator
quote:
Originally posted by Swanny
I was just wondering if it's normal to have to enter the settings again every time you open up Messenger? I'm guessing the problem isn't supposed to be there seeing as no one else has commented on it.
nope never had that is there an error logged? or maybe it's settings directory/registry is unwritable or re-written at startup or something?
I'm not sure. All I know is that I'm running WLM 8.5 with MPL current version and Messenger Discovery. Running Windows Vista Home Premium and I don't have any skins or other scripts installed, this Punctuator is the only one I have.
RE: [Release] Punctuator by vaccination on 07-11-2008 at 10:30 PM

I've started work on this script, and have it doing everything it used to and now not adding periods after emotes - atm this works for all custom emotes, but not msn's default emotes(not working when it should be for some reason)

Also going to try and add a option for adding your own 'emotes' that you don't want a period after(for example "=p", "=s", ";D")

And just generally making the script cleaner(basically re-writing it from scratch) - However I'm not making any promises as to finishing this, or finishing it soon(although I should be able too) as I'm currently quite busy with some other projects =p


[update] Punctuator by roflmao456 on 07-12-2008 at 04:52 AM

So I was bored and decided to work on this script.

Bugs fixed:
- When typing a command like /prefs, it will result in an invalid command due to the adding of periods at the end of each message.
- Settings bug, settings got reset when restarting Messenger.
maybe a few others that i've forgotten..

Changed:
- Structure, style of coding. Now using Boolean instead of String.
- Optimized code, removed some functions/events, removed useless file (about.xml), optimized XML (ui.xml).
- New about window.
- "Smoothened" logo.png

Perhaps could make development more easier.. :P


RE: [Release] Punctuator by Swanny on 07-13-2008 at 01:55 PM

Thanks, was the Settings dialog box intentionally taken away?


RE: [Release] Punctuator by roflmao456 on 07-13-2008 at 04:39 PM

quote:
Originally posted by Swanny
Thanks, was the Settings dialog box intentionally taken away?
yes, i don't see any good use of it since it does the same thing as the menu items :P
RE: [Release] Punctuator by Jimbo on 07-13-2008 at 08:40 PM

Thanks roflmao for working on this script.  I would work on it myself but as im really busy with coursework and stuff, ill let you guys do it:P


RE: [Release] Punctuator by roflmao456 on 07-13-2008 at 09:32 PM

updated script in my post.


RE: [Release] Punctuator by aNILEator on 07-14-2008 at 05:17 AM

suggested improvements/bugs (rofl's version).

- When typing a command like /prefs, it will result in an invalid command due to the adding of periods at the end of each message. Still exists...
Can't send ^o) at the beginning of sentences the O gets capitalized and kills it :P (there are a few others like this
When ending a sentence with an emoticon have the full stop insert before emoticon, unless the sentence only consists of an emoticon
Capitalize letters after punctuation marks. Like! So? Yeah.
Capitalize i's on their own
Correct spellings (a) :P


RE: [Release] Punctuator by Cleofide on 08-18-2008 at 12:09 PM

Hi,

As some people might have noticed, adding punctuation to an URL often results in getting a wrong or improper link, especially when it contains variables.

Thus, http://www.youtube.com/watch?v is turned into Http://www.Youtube.Com/watch?V because of the ? (not here, but if you add a variable, it will), generating an erroneous link. As those alterations caused me some snags, I concluded to add a slight modification.

Despite that I use a French version of Punctuator, I think it should work with the English one; I haven't tested it yet though.

Just after the var stuff ends, add:

code:
var exp2=new RegExp("http", "gi");
if (sMessage_.search(exp2)==-1) {

And then conclude with:
code:
}
at the very end. You should get something like:

code:
function OnEvent_ChatWndSendMessage(pChatWnd, sMessage){
sMessage_ = sMessage
sLast = sMessage_.substr(sMessage_.length-1,1)
var exp=new
RegExp("[a-zA-Z0-9éèêëàáâäóòôöíìîïçÉÈÊËÀÁÂÄÒÓÔÖÌÍÎÏÇ-]+","g");
var Mots=sMessage_.match(exp)

var exp2=new RegExp("http", "gi");
if (sMessage_.search(exp2)==-1) {

    if (Mots.length == 1) {}
    else if (sLast != "!" && sLast != "?" && sLast != ".")
        {sMessage = sMessage_.substr(0,1).toUpperCase() + sMessage_.substr(1) + '.';}
    else
        {sMessage = sMessage_.substr(0,1).toUpperCase() + sMessage_.substr(1);}
   
    sMessage_ = sMessage
   
    for (i=0; i<sMessage.length; i++)
        if (sMessage.substr(i,1) == "!" || sMessage.substr(i,1) == "?" || sMessage.substr(i,1) == ".") {
            u=(i+1);
            while (u<sMessage.length && sMessage_.substr(u,1)==" ") {
            u++;
            }
            sMessage = sMessage_.substr(0,u)+sMessage_.substr(u,1).toUpperCase()+sMessage_.substr(u+1)
            sMessage_ = sMessage
        }
   
         return sMessage;
    }
}


Thought it was gonna be a tough nut to crack, but no.
RE: [Release] Punctuator by Spunky on 08-18-2008 at 01:20 PM

I might offer Roflmao some help on WLM when I get back home :p


RE: [update] Punctuator by XAaronX on 09-21-2008 at 02:04 AM

quote:
Originally posted by roflmao456
So I was bored and decided to work on this script.

Bugs fixed:
- When typing a command like /prefs, it will result in an invalid command due to the adding of periods at the end of each message.
- Settings bug, settings got reset when restarting Messenger.
maybe a few others that i've forgotten..

Changed:
- Structure, style of coding. Now using Boolean instead of String.
- Optimized code, removed some functions/events, removed useless file (about.xml), optimized XML (ui.xml).
- New about window.
- "Smoothened" logo.png

Perhaps could make development more easier.. :P
After installing this version of Punctuator, I realised that the first word cannot contain 2 or more upper case letters, 1 including the first letter. Is there any way I can fix that?
RE: [Release] Punctuator by BüYüCü on 09-29-2008 at 07:04 PM

Thanks...


RE: [Release] Punctuator by XAaronX on 01-31-2009 at 04:53 AM

Can someone edit this script so that it remembers the state of my last saved option?
Having using this script for a long time now, I've become lazy to enable the script every time Messenger is started.

By the way, this script works for WLM 9.0.


RE: [Release] Punctuator by AylaAsperger on 04-28-2009 at 08:35 PM

I'm having the same problem. I have to set the options every time I login. Is there any fix for this bug planned?

Thxxx in advance.