From WikiChip
Editing mirc/identifiers/$highlight

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

This page supports semantic in-text annotations (e.g. "[[Is specified as::World Heritage Site]]") to build structured and queryable content provided by Semantic MediaWiki. For a comprehensive description on how to use annotations or the #ask parser function, please have a look at the getting started, in-text annotation, or inline queries help pages.

Latest revision Your text
Line 1: Line 1:
{{mirc title|$highlight Identifier}}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.
+
{{mirc title|$highlight Identifier}}The '''$higlight''' identifier return the number of the line that matched the regular expression in dialog's control.
  
  
Line 6: Line 6:
  
  
<pre>$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</pre>
+
<pre>$highlight(N/text) - return the Nth line in the highlight mIRC dialog's list, or if 'text' is specified, return the line which match 'text'</pre>
  
 
== Parameters ==
 
== Parameters ==
 
* '''N''' - if N is passed, return the Nth line in the highlight mIRC dialog's list
 
* '''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.
+
* '''text''' - if text is passed, return the line for which an highlight would trigger for that text
  
 
== Properties ==
 
== Properties ==
* '''.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 ==
 
== Example ==

Please note that all contributions to WikiChip may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see WikiChip:Copyrights for details). Do not submit copyrighted work without permission!

Cancel | Editing help (opens in new window)