Jump to content

Colour/bold/underline Alias


Silo

Recommended Posts

Okay, this is very basic, but I like use Ctrl K, B & U alot for colouring,bold & underline, and found that code can start to look really messy, especially if you're using $+ to connect segments. I start using $chr(N) instead but thought I could improve on the cleanliness of the code.

 

If you want to try this out place this in your alias file (Alt A) or prefix each alias with "alias"

 

_bold return $+($chr(2),$1-,$chr(2))
_under return $+($chr(31),$1-,$chr(31))
_col.test return $+($chr(3),$1,$2)

 

Usage:

//echo -a $_col.short(12,Here is a string of blue text)

 

//echo -a $_bold($_col.short(4,Here is a string of bold red text))

 

//echo -a $_under($_bold($_col.short(13,Here is a string of bold pink underlined text)))

 

You can use any combination, simply wrap your text within the alias and you're good to go. Very clean way of using mIRC's colour codes.

 

Give it a try. If you use this I no need for any credits.

Edited by Silo
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...