Sentence ender/capitalization
mIRC Code
+ 0 likes
Please Register to submit score.
| Average Score | 4.7 |
| Scores Submitted | 6 |
| Date Added | Sep 20, 2007 |
| Last Updated | Sep 20, 2007 |
| Tags | capitalization end sentence text word |
|
|
Introduction
mIRC Snippet:
Sentence ender/capitalization
Posted on Sep 20, 2007 4:08 pm
Posted on Sep 20, 2007 4:08 pm
Not a bad little snippet here. If I had the ability to: 4.5/10.
mIRC Snippet:
Sentence ender/capitalization
Posted on Sep 20, 2007 4:19 pm
Posted on Sep 20, 2007 4:19 pm
dude that is a good idea, i love it!
mIRC Snippet:
Sentence ender/capitalization
Posted on Sep 20, 2007 4:24 pm
Posted on Sep 20, 2007 4:24 pm
but it doesnt work for me
it says theres a problem with the $iif
it says theres a problem with the $iif
mIRC Snippet:
Sentence ender/capitalization
Posted on Sep 20, 2007 5:04 pm
Posted on Sep 20, 2007 5:04 pm
| Code: |
on *:INPUT:*:{ var %x = .! if ($left($1-,1) != / && $active != Status Window && $left($1-,1) islower && $right($1-,1) !isin %x) { msg $active $upper($left($1-,1)) $+ $right($1-,$calc($len($1-) - 1)) $+ . | haltdef } } |
that works, but idk whats wrong with the menu
mIRC Snippet:
Sentence ender/capitalization
Posted on Sep 20, 2007 5:36 pm
Posted on Sep 20, 2007 5:36 pm
@ SilentExile, thank you
@ mountaindew, could you specify which line in the script? everything worked fine for me so I have no clue why there would be an error.
@ mountaindew, could you specify which line in the script? everything worked fine for me so I have no clue why there would be an error.
mIRC Snippet:
Sentence ender/capitalization
Posted on Sep 20, 2007 5:38 pm
Posted on Sep 20, 2007 5:38 pm
hmm...it may be another script of mine then
but you had a lot of unnecessary code in the on input, and you didnt even have a period ender like u said
but you had a lot of unnecessary code in the on input, and you didnt even have a period ender like u said
mIRC Snippet:
Sentence ender/capitalization
Posted on Sep 20, 2007 5:42 pm
Posted on Sep 20, 2007 5:42 pm
.. yes it should.. $chr(46) returns a period. i hope i explained everything clearly here is how it's supposed to work:
the %tmp variable returns two values sperated by a comma. the first value returns whether to end the sentence with a period, the second value returns whether to start the sentence with a capital letter. if you pasted the script exactly as it is now, then everything should be on. i think i am going to edit this a bit, because i think i see what you are talking about mountaindew. when you type the sentence, does it start with a capital without the capital letter option on?
the %tmp variable returns two values sperated by a comma. the first value returns whether to end the sentence with a period, the second value returns whether to start the sentence with a capital letter. if you pasted the script exactly as it is now, then everything should be on. i think i am going to edit this a bit, because i think i see what you are talking about mountaindew. when you type the sentence, does it start with a capital without the capital letter option on?
mIRC Snippet:
Sentence ender/capitalization
Posted on Sep 20, 2007 5:47 pm
Posted on Sep 20, 2007 5:47 pm
i found an error. i think what was happening was that the actual snippet only worked if the first letter was lower cased, thus if you chose to not start with a capital letter it wouldn't work unless you manually typed it. i've fixed that problem and removed some useless code. it should be a bit cleaner now. thanks mountaindew for your assistance. =)
mIRC Snippet:
Sentence ender/capitalization
Posted on Sep 20, 2007 5:53 pm
Posted on Sep 20, 2007 5:53 pm
yea the $iif thing wasnt from ur script
now it works fine, with capital and period :P
now it works fine, with capital and period :P
mIRC Snippet:
Sentence ender/capitalization
Posted on Sep 20, 2007 5:57 pm
Posted on Sep 20, 2007 5:57 pm
glad to hear it =)
mIRC Snippet:
Sentence ender/capitalization
Posted on Jul 22, 2008 5:35 pm
Posted on Jul 22, 2008 5:35 pm
Hey man it be cool if you could put colors for punc. and Cap letter and stuff
mIRC Snippet:
Sentence ender/capitalization
Posted on Sep 7, 2008 3:54 pm
Posted on Sep 7, 2008 3:54 pm
4 real add colors
mIRC Snippet:
Sentence ender/capitalization
Posted on Sep 7, 2008 4:17 pm
Posted on Sep 7, 2008 4:17 pm
Useful to me since later in the evenings I get pretty lazy, and its a great idea. :)
7/10
7/10
mIRC Snippet:
Sentence ender/capitalization
Posted on Sep 20, 2008 8:04 pm
Posted on Sep 20, 2008 8:04 pm
still no colors
mIRC Snippet:
Sentence ender/capitalization
Posted on Sep 20, 2008 11:07 pm
Posted on Sep 20, 2008 11:07 pm
| Code: |
| #sent.comp on on *:INPUT:*:{ if (/* !iswm $1-) && ($active != Status Window) { msg $active $regsubex($regsubex($1-,/^((?:\x03\d{0,2}(?:,\d{0,2})?|\x02|\x1f|\x22)*(?:[a-z]))/, $upper(\t)), /([^.?!])$/, \t $+ $chr(46)) | halt } } #sent.comp end menu channel,status,query { Sentance Completer .$iif($group(#sent.comp).status == on, Disable, Enable) : $iif($group(#sent.comp).status == on, .disable #sent.comp, .enable #sent.comp) } |
My version of it, handles colors, punctuation at the end, updated menu
mIRC Snippet:
Sentence ender/capitalization
Posted on Sep 21, 2008 9:51 am
Posted on Sep 21, 2008 9:51 am
YU ROCK IMRAC
mIRC Snippet:
Sentence ender/capitalization
Posted on Sep 21, 2008 9:53 am
Posted on Sep 21, 2008 9:53 am
no colors dude
mIRC Snippet:
Sentence ender/capitalization
Posted on Sep 21, 2008 9:53 am
Posted on Sep 21, 2008 9:53 am
Put Some colors dude
mIRC Snippet:
Sentence ender/capitalization
Posted on Sep 21, 2008 1:18 pm
Posted on Sep 21, 2008 1:18 pm
TropicalMeltdown
use the damn edit buttton ffs.. damn flooder.. and if you want color's then add them ur self.
use the damn edit buttton ffs.. damn flooder.. and if you want color's then add them ur self.
mIRC Snippet:
Sentence ender/capitalization
Posted on Sep 21, 2008 1:25 pm
Posted on Sep 21, 2008 1:25 pm
rofl
mIRC Snippet:
Sentence ender/capitalization
Posted on Sep 26, 2008 12:47 pm
Posted on Sep 26, 2008 12:47 pm
[6:47pm] <~Bullet_Dodger> Testing script
[6:47pm] <~Bullet_Dodger> Testing script.
[6:47pm] <~Bullet_Dodger> Testing script
[6:47pm] <~Bullet_Dodger> Testing script.
[6:47pm] <~Bullet_Dodger> Testing script
[6:47pm] <~Bullet_Dodger> Testing script.
^ Err it repeats everything twice
[6:47pm] <~Bullet_Dodger> Testing script.
[6:47pm] <~Bullet_Dodger> Testing script
[6:47pm] <~Bullet_Dodger> Testing script.
[6:47pm] <~Bullet_Dodger> Testing script
[6:47pm] <~Bullet_Dodger> Testing script.
^ Err it repeats everything twice
mIRC Snippet:
Sentence ender/capitalization
Posted on Sep 26, 2008 12:51 pm
Posted on Sep 26, 2008 12:51 pm
Bullet_Dodger: Check to make sure you do not have two 'on *:INPUT' scripts going at once.
mIRC Snippet:
Sentence ender/capitalization
Posted on Sep 26, 2008 12:54 pm
Posted on Sep 26, 2008 12:54 pm
Oh yea forgot about that.









