What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Release] Punctuator

Pages: (4): « First « 1 2 [ 3 ] 4 » Last »
[Release] Punctuator
Author: Message:
Swanny
New Member
*


Posts: 3
Joined: Jul 2008
RE: [Release] Punctuator
Thanks, was the Settings dialog box intentionally taken away?
07-13-2008 01:55 PM
Profile E-Mail PM Find Quote Report
roflmao456
Skinning Contest Winner
****

Avatar

Posts: 955
Reputation: 24
29 / Male / Flag
Joined: Nov 2006
Status: Away
RE: [Release] Punctuator
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
[quote]
Ultimatess6
: What a noob mod
07-13-2008 04:39 PM
Profile PM Web Find Quote Report
Jimbo
Veteran Member
*****

Avatar

Posts: 1650
Reputation: 18
31 / Male / Flag
Joined: Jul 2006
O.P. RE: [Release] Punctuator
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
07-13-2008 08:40 PM
Profile E-Mail PM Find Quote Report
roflmao456
Skinning Contest Winner
****

Avatar

Posts: 955
Reputation: 24
29 / Male / Flag
Joined: Nov 2006
Status: Away
RE: [Release] Punctuator
updated script in my post.
[quote]
Ultimatess6
: What a noob mod
07-13-2008 09:32 PM
Profile PM Web Find Quote Report
aNILEator
Skinning Contest Winner
*****

Avatar
...in the wake of the aNILEator

Posts: 3718
Reputation: 90
35 / Male / Flag
Joined: Oct 2003
Status: Away
RE: [Release] Punctuator
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

This post was edited on 07-14-2008 at 05:58 AM by aNILEator.
07-14-2008 05:17 AM
Profile PM Web Find Quote Report
Cleofide
New Member
*


Posts: 1
29 / Male / Flag
Joined: Aug 2008
RE: [Release] Punctuator
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.

This post was edited on 08-18-2008 at 12:16 PM by Cleofide.
08-18-2008 12:09 PM
Profile E-Mail PM Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
35 / Male / Flag
Joined: Aug 2006
RE: [Release] Punctuator
I might offer Roflmao some help on WLM when I get back home :p
<Eljay> "Problems encountered: shit blew up" :zippy:
08-18-2008 01:20 PM
Profile PM Find Quote Report
XAaronX
New Member
*

Gamer

Posts: 8
33 / Male / –
Joined: Jul 2006
RE: [update] Punctuator
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?
09-21-2008 02:04 AM
Profile E-Mail PM Web Find Quote Report
BüYüCü
Junior Member
**

Avatar

Posts: 17
Reputation: -2
34 / Male / Flag
Joined: Sep 2008
RE: [Release] Punctuator
Thanks...
[Image: msgplusliveturkeygg3.jpg]
09-29-2008 07:04 PM
Profile PM Find Quote Report
XAaronX
New Member
*

Gamer

Posts: 8
33 / Male / –
Joined: Jul 2006
RE: [Release] Punctuator
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.
01-31-2009 04:53 AM
Profile E-Mail PM Web Find Quote Report
Pages: (4): « First « 1 2 [ 3 ] 4 » 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