From WikiChip
Difference between revisions of "mirc/identifiers/$highlight"
(→Properties) |
|||
(2 intermediate revisions by 2 users not shown) | |||
Line 16: | Line 16: | ||
* '''.color''' - returns the color of the line being highligted | * '''.color''' - returns the color of the line being highligted | ||
* '''.sound''' - returns the sound associated with the highlight if any ("beep" or a filename) | * '''.sound''' - returns the sound associated with the highlight if any ("beep" or a filename) | ||
− | * '''.flash''' - returns | + | * '''.flash''' - returns 0 if flash is not set, otherwise it returns the corresponding number of repeat time |
* '''.message''' - returns $true/$false depending on if the highlight is set for messages | * '''.message''' - returns $true/$false depending on if the highlight is set for messages | ||
− | * '''.nicks'' - returns $true/$false depending on if the highlight is set for nicks | + | * '''.nicks''' - returns $true/$false depending on if the highlight is set for nicks |
* '''.regex''' - returns $true/$false depending on if the text should be compared using a regular expression | * '''.regex''' - returns $true/$false depending on if the text should be compared using a regular expression | ||
* '''.cs''' - returns $true/$false depending on if the text should be compared using case sensitivity | * '''.cs''' - returns $true/$false depending on if the text should be compared using case sensitivity |
Latest revision as of 08:42, 6 August 2022
Commands & Identifiers
Basics
Events
Matching Tools
Data Storage
Control Structures
GUI Scripting
Sockets
Advanced Scripting
Additional Resources
Security
Other
The $highlight identifier, if used without parameters, returns a $true/$false value depending on if you have the highlight features enabled in mIRC, otherwise returns informations about the highlight entries.
Synopsis[edit]
$highlight - return $true/$false depending on if highlighting is turned on in the highlight mIRC dialog
$highlight(N/text) - return the Nth line in the highlight mIRC dialog's list, or return the value of the corresponding entry in mIRC's highlight dialog list, if any, for that string
Parameters[edit]
- N - if N is passed, return the Nth line in the highlight mIRC dialog's list
- text - if non-number parameter is passed, return the value of the corresponding entry in mIRC's highlight dialog list in option for that string.
Properties[edit]
- .text - returns the matching text of the entry
- .color - returns the color of the line being highligted
- .sound - returns the sound associated with the highlight if any ("beep" or a filename)
- .flash - returns 0 if flash is not set, otherwise it returns the corresponding number of repeat time
- .message - returns $true/$false depending on if the highlight is set for messages
- .nicks - returns $true/$false depending on if the highlight is set for nicks
- .regex - returns $true/$false depending on if the text should be compared using a regular expression
- .cs - returns $true/$false depending on if the text should be compared using case sensitivity
- .chans - returns the list of channels and nicknames required to trigger an highlight for that entry, if any.
Example[edit]
None
Compatibility[edit]
Added: mIRC v5.11
Added on: 11 Sep 1997
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.
See also[edit]
mIRC identifier list