gooshie commented on a Page, $caps Identifier  -  Sep 10, 2010

KyleJack-Daniels

You may not really need this script. It is best used with custom pop-ups and response type events when you need to make sure the first word is capitalized for instance if you begin a sentence with a nickname (some people don't capitalize their nick).
There may be other occasional uses.

usage: $caps(string of text or $nick or $1 etc)
Example: Friend Pop-up:say $caps($1) is my friend!
(This would insure that any nick you selected would appear capitalized
regardless if that persons nick began with a capital letter.)

To easily add the alias to your alias section you can simply
enter in mIRC editbox => /alias caps return $regsubex($1-,/^(.)/S,$upper(\t))

To test you could
enter in editbox => //echo $caps(test first letter of first word is capitalized.)

In actual practice it would not be necessary to send the whole line to $caps just whatever word needed to be capitalized. Also, there would be no reason to use it for 'static' words as you could simply type those in with the caps already in place.

gooshie

 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.