Capitalize

Platform:  mIRC
Published  Jul 26, 2007
Updated  Dec 30, 2007
This script will the first letter of each sentence capitalized.
Just paste it in remotes, alt + r.

To exclude words, change the words in the %ex variable.

Thanks to atom_aw for the regsubex.

Enjoy. on *:INPUT:*: {
if (/* !iswm $1) {
var %ex = lol|brb|bbl|wtf|ttyl
msg $target $regsubex($1-,/^(.)|([?!.:]s?(?!b(?: $+ %ex $+ )b).)/g,$upper(\1))
haltdef
}
}

Comments

Sign in to comment.
jonesy44   -  Jan 01, 2009
All words capitalized - Caps Lock
Color - ctrl + K or a script: for example: http://www.hawkee.com/snippet/4919/
Underlined: ctrl + U
 Respond  
doktertomi   -  Dec 31, 2008
yes I would like it if it was all words were capitalized... and also different color, and also underlined. Help me, please...
 Respond  
Cazz   -  Sep 22, 2008
Oh and a way to capitalize any stand-alone I's so like:

hello, i am a person.
Hello, I am a person.
 Respond  
Cazz   -  Sep 22, 2008
How does this work? I just can't figure it out and need some explanation to learn how this works. Also, is there a way to add periods to the end?
 Respond  
Lindrian   -  Dec 30, 2007
hawkee strips the \\\\ (backslashes).
the command thing is fixed.
 Respond  
tzar469   -  Dec 30, 2007
This script won\'t work.
Code
 


You have $upper(1) which will replace your first letter with a 1.

Also, you can\'t type commands using this script.
 Respond  
mountaindew   -  Sep 07, 2007
when u said msn should have mirc capabillties i wish there was a way to script an AIM bot :P
 Respond  
Anti   -  Aug 08, 2007
ROFL ovaldo Hawkee should have mIRC capabilities and i also talk like /me beats ovaldo with the ugly stick .. because i feel like talking like that and i WUBB mIRC :DD and scripting :P
 Respond  
Lindrian   -  Aug 08, 2007
mIRC has MSN capabilities :)
 Respond  
Ovaldo   -  Aug 08, 2007
whats with people talking like they are on IRC??? like wtf is with /me CLAPS.. like seriously.. is that how you talk on MSN (If you have)???? btw I think MSN should have mIRC capabilities =D
 Respond  
Anti   -  Jul 27, 2007
yeah you explained that in the introduction :D /me posts more for 25 posts
 Respond  
Lindrian   -  Jul 27, 2007
By the way, the script only makes the first letter capitalized, nothing else.
Instead of:
\"hello, how are you?\"
\"Hello, how are you?\"
 Respond  
Lindrian   -  Jul 27, 2007
Any reason for the 4, Guardian? Lack of coding? Lack of efficiently?
 Respond  
GuardianDemon   -  Jul 27, 2007
Gave It A 4 Changed Muh Mind
 Respond  
GuardianDemon   -  Jul 27, 2007
Lmao Anti Your Right Becouse I Don Know This Is Just The Way I Type Its Natural For Me But I Will Need To Get Out Of This Habbit Eventually Lol Nicely Dont By The Way Ima Gonna Rate It Umm 3/10 : )
 Respond  
Lindrian   -  Jul 27, 2007
Hehe, thank you guys :)
 Respond  
[M]ike   -  Jul 27, 2007
If all your words in a sentence were capitalised, then your sentence would be bad grammar ;)
 Respond  
Anti   -  Jul 27, 2007
/me CLAPS!! WELL DONE WOW That is just awesome i love it im not lazy my self but when i do this is just perfect NICE JOB i think GuardianDemon would like it if it was all words were capitalized but if i could rate this 6.0 .. 10.0 TOPS :)) once again well done
 Respond  
Lindrian   -  Jul 26, 2007
Hehe, thank you Mike :-)
 Respond  
[M]ike   -  Jul 26, 2007
This is a really useful script, as you said, a typical \"Lazy mans\" script. But good job, it works fine. :)
 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.