Grammer correcter. |
Author: |
Message: |
deltaalphanova
New Member
Posts: 8
44 / / –
Joined: Jun 2004
|
O.P. Grammer correcter.
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.
|
|
08-19-2004 07:49 AM |
|
|
Yousef
Full Member
(previously known as Juzzi)
Posts: 487 Reputation: 19
35 / /
Joined: Jul 2004
|
RE: Grammer correcter.
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
This post was edited on 08-19-2004 at 08:01 AM by Yousef.
|
|
08-19-2004 07:59 AM |
|
|
deltaalphanova
New Member
Posts: 8
44 / / –
Joined: Jun 2004
|
O.P. RE: Grammer correcter.
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?
|
|
08-19-2004 08:12 AM |
|
|
Yousef
Full Member
(previously known as Juzzi)
Posts: 487 Reputation: 19
35 / /
Joined: Jul 2004
|
RE: Grammer correcter.
I think you just have to learn typing correctly . It would be a stupid plugin I guess.
This post was edited on 08-19-2004 at 08:16 AM by Yousef.
|
|
08-19-2004 08:15 AM |
|
|
Stigmata
Veteran Member
Posts: 3520 Reputation: 45
21 / /
Joined: Jul 2003
|
RE: Grammer correcter.
it would be better if it was encoperated into a bigger plugin
|
|
08-19-2004 08:20 AM |
|
|
deltaalphanova
New Member
Posts: 8
44 / / –
Joined: Jun 2004
|
O.P. RE: RE: Grammer correcter.
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)
This post was edited on 08-19-2004 at 08:23 AM by deltaalphanova.
|
|
08-19-2004 08:22 AM |
|
|
segosa
Community's Choice
Posts: 1407 Reputation: 92
Joined: Feb 2003
|
RE: Grammer correcter.
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.
Attachment: talker.grammar.rar (272 bytes)
This file has been downloaded 264 time(s).
This post was edited on 08-19-2004 at 07:15 PM by segosa.
The previous sentence is false. The following sentence is true.
|
|
08-19-2004 05:03 PM |
|
|
segosa
Community's Choice
Posts: 1407 Reputation: 92
Joined: Feb 2003
|
RE: Grammer correcter.
* segosa slaps TheBlasphemer around a bit with a large trout
The previous sentence is false. The following sentence is true.
|
|
08-19-2004 06:42 PM |
|
|
Stigmata
Veteran Member
Posts: 3520 Reputation: 45
21 / /
Joined: Jul 2003
|
RE: Grammer correcter.
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.
|
|
08-19-2004 06:44 PM |
|
|
segosa
Community's Choice
Posts: 1407 Reputation: 92
Joined: Feb 2003
|
RE: RE: Grammer correcter.
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
The previous sentence is false. The following sentence is true.
|
|
08-19-2004 07:13 PM |
|
|
Pages: (2):
« First
[ 1 ]
2
»
Last »
|
|