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

(Created page with "{{mirc title|$colour Identifier}}The '''$colour''' identifier allows mIRC to return the proper color code associated with the specified target. (same as $color) == Synopsis =...")
 
m (No evidence in mirc change log. Undo revision 99138 by KindOne (talk))
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{mirc title|$colour Identifier}}The '''$colour''' identifier allows mIRC to return the proper color code associated with the specified target. (same as $color)
 
{{mirc title|$colour Identifier}}The '''$colour''' identifier allows mIRC to return the proper color code associated with the specified target. (same as $color)
 +
  
 
== Synopsis ==
 
== Synopsis ==
Line 30: Line 31:
 
{{mIRC identifier list}}
 
{{mIRC identifier list}}
  
[[Category:MIRC identifiers]]
+
[[Category:mIRC identifiers|colour]]

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