Shoutbox

Grammer correcter. - 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)
+----- Forum: Plug-Ins (/forumdisplay.php?fid=28)
+------ Thread: Grammer correcter. (/showthread.php?tid=30151)

Grammer correcter. by deltaalphanova on 08-19-2004 at 07:49 AM

I want to make a program that automatically holds down the shift key for the first character typed in the message box, and that well automatically add a period at the end of a message.

Unfortunatly I am an idiot when it comes to programming.

I would think it would just be 2 very simple if commands. Something like this;

If <first character>.exist = false
Then <hold shift>
//and the other part
If <last character> /= "?"".""!"
then (<last character> + 1) SET <last character> = "."

If anybody is willing to tell me how to make this little thing your help is greatly appriceated, thanks in advance.


RE: Grammer correcter. by Yousef on 08-19-2004 at 07:59 AM

c++ or vb?

in c++ it will be someting like
strcpy(sResult,sCommandArg);
if isAlpha(sResult[0]) {
    sResult[0] = toupper(sResult[0] );
}
if sResult[strlen(sResult) - 1] != '.' && sResult[strlen(sResult) - 1] != '?' && sResult[strlen(sResult) - 1] != '!'{
     strcat(sResult,'.');
}

probably the first if isn't even necessary


RE: Grammer correcter. by deltaalphanova on 08-19-2004 at 08:12 AM

Thank you very much, now if only my C++ thing wasen't a peice... (Thats what I get for useing a free one :( )

Is there anybody who is up for makeing me a little program?


RE: Grammer correcter. by Yousef on 08-19-2004 at 08:15 AM

I think you just have to learn typing correctly ;). It would be a stupid plugin I guess.


RE: Grammer correcter. by Stigmata on 08-19-2004 at 08:20 AM

it would be better if it was encoperated into a bigger plugin


RE: RE: Grammer correcter. by deltaalphanova on 08-19-2004 at 08:22 AM

quote:
Originally posted by Stigmata
it would be better if it was encoperated into a bigger plugin


Can't fault your logic. But I still want one. Right now I'm pretty much up sh!t creek without a paddle just hopeing some kind soul well make it for me. (I hate being a mooch)
RE: Grammer correcter. by segosa on 08-19-2004 at 05:03 PM

I coded an SPNG talker in JavaScript which will do what you want, so you can set it as an auto-talker and have it on all the time.

Seeing as it's in JavaScript and I've only ever done one thing in JavaScript it gave me a few headaches trying to get to work, but it does.

EDIT: Wait, I forgot to get it to ignore the dot if there's a punctuation char on the end, instead of just if there's a dot. Let me fix it and re-upload.

EDIT2: Right, fixed and uploaded. If the last character isn't an alphabetic char, it won't add a fullstop.


RE: Grammer correcter. by segosa on 08-19-2004 at 06:42 PM

* segosa slaps TheBlasphemer around a bit with a large trout


RE: Grammer correcter. by Stigmata on 08-19-2004 at 06:44 PM

quote:
Originally posted by Segosa
It's attached in .zip format.
quote:
Originally posted by Segosa
talker.grammar.rar


* Stigmata slaps Segosa around a bit with a large trout.
RE: RE: Grammer correcter. by segosa on 08-19-2004 at 07:13 PM

quote:
Originally posted by Stigmata
quote:
Originally posted by Segosa
It's attached in .zip format.
quote:
Originally posted by Segosa
talker.grammar.rar


* Stigmata slaps Segosa around a bit with a large trout.


Bah! It was ZIP first but when I updated I did RAR by accident :$
RE: Grammer correcter. by deltaalphanova on 08-20-2004 at 02:59 AM

Thank you all very much.


RE: Grammer correcter. by brad__bomb on 08-20-2004 at 05:20 PM

yes, a GRAMMAR corrector would be swell.

i had the idea of doing something like the Ink plugin. make a little tab underneath the regular typing box, and have another one that would be covered by MS Word or something, to check the grammar/spelling and whatnot. clever it is, but is it possible?


RE: RE: Grammer correcter. by Martijn. on 08-20-2004 at 05:44 PM

quote:
Originally posted by brad__bomb
yes, a GRAMMAR corrector would be swell.

i had the idea of doing something like the Ink plugin. make a little tab underneath the regular typing box, and have another one that would be covered by MS Word or something, to check the grammar/spelling and whatnot. clever it is, but is it possible?

You'll have to hook the conversation window for that, wich isn't easy8-)...