From WikiChip
Difference between revisions of "mirc/identifiers/$colour"
< mirc‎ | identifiers

m (Compatibility: American spelling $color was added in 5.9)
m (No evidence in mirc change log. Undo revision 99138 by KindOne (talk))
 
Line 25: Line 25:
 
== Compatibility ==
 
== Compatibility ==
 
{{mIRC compatibility|5.3}}
 
{{mIRC compatibility|5.3}}
 
NOTE: American spelling $color was added in 5.9
 
  
 
== See Also ==
 
== See Also ==

Latest revision as of 05:34, 11 August 2021

The $colour identifier allows mIRC to return the proper color code associated with the specified target. (same as $color)


Synopsis[edit]

$colour(name/N)[.property]

Parameters[edit]

name Returns the color code for the specified name/action/event. Partial matches work as well: $colour(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[edit]

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[edit]

Echo the color code for action events:

//echo -a $colour(action)

Echo the RGB code for the 4th color box:

//echo -a $colour(4)

Compatibility[edit]

Added: mIRC v5.3
Added on: 13 Dec 1997
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.


See Also[edit]

[Expand]
v · d · e mIRC identifier list