From WikiChip
mirc/identifiers/$color
< mirc‎ | identifiers
Revision as of 10:25, 2 July 2014 by Zmodem (talk | contribs) (Created $color identifier - mIRC)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The $color identifier allows mIRC to return the proper color code associated with the specified target.

Synopsis

$color(name/N)[.property]

Parameters

name Returns the color code for the specified name/action/event. Partial matches work as well: $color(action)
N Specifies that the color code to be looked up is the RGB value for a specific color box target from the CTRL+K list.

Properties

dd Allows the color codes to be returned in double-digit format, eg: 02 instead of 2. Does not work on RGB-returned values.

Examples

Echo the color code for action events:

//echo -a $color(action)

Echo the RGB code for the 4th color box:

//echo -a $color(4)

Compatibility

Added: mIRC v5.3

Added On: 13/12/97

See Also