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

(Created page with "{{mirc title|$hotlink Identifier}}'''$hotlink''' returns informations about what triggered the {{mIRC|on hotlink}} event. == Synopsis == <pre>$hotlink(item)</pre> == Parame...")
 
(Properties)
 
(2 intermediate revisions by the same user not shown)
Line 10: Line 10:
 
** '''match''' - returns the part of the word that was used for a comparison to gives the type of match. For example if you hover an operator on a channel with the word "<@nick>", $hotlink(match) is "nick" where $hotlink(word) is "<@nick>"
 
** '''match''' - returns the part of the word that was used for a comparison to gives the type of match. For example if you hover an operator on a channel with the word "<@nick>", $hotlink(match) is "nick" where $hotlink(word) is "<@nick>"
 
** '''event''' - returns the mouse event which triggered the {{mIRC|on hotlink}} event, can be "mouse", "sclick", "uclick", "dclick", or "rclick"
 
** '''event''' - returns the mouse event which triggered the {{mIRC|on hotlink}} event, can be "mouse", "sclick", "uclick", "dclick", or "rclick"
** '''
+
** '''line''' - returns the full line which triggered the {{mIRC|on hotlink}} event.
 +
 
 
== Properties ==
 
== Properties ==
None
+
* '''.pos''' - the .pos property can only be used with "line", "word" and "match" items:
 +
** '''$hotlink(line).pos''' - returns the line's number in the window
 +
** '''$hotlink(word).pos''' - returns the Nth token number of the word in the line (Nth word)
 +
** '''$hotlink(match).pos''' - returns the position/index of the matching word in the line (Nth character), starting with an index count of 0.
 +
*'''.type''' - used only with "match" item, returns the type of match, can be "nick", "channel", "url" and "other"
  
 
== Example ==
 
== Example ==
<source lang="mIRC">//echo -a $speak(0)</source>
+
<source lang="mIRC">on *:hotlink:*:*:echo -a $hotlink(match)</source>
  
 
== Compatibility ==
 
== Compatibility ==
{{mIRC compatibility|7.0}}
+
{{mIRC compatibility|7.24}}
  
 
== See Also ==
 
== See Also ==
{{mIRC|/speak}}
+
{{mIRC|/hotlink}}
 +
{{mIRC|on hotlink}}
  
[[Category:mIRC identifiers|speak]]
+
[[Category:mIRC identifiers]]

Latest revision as of 12:00, 9 November 2018

$hotlink returns informations about what triggered the on hotlink event.


Synopsis[edit]

$hotlink(item)

Parameters[edit]

  • item - the type of information you want, can be:
    • word - returns the full word which matched the expression and triggered the event, same as $1, except that $hotlink(word) does not strip the word from control code
    • match - returns the part of the word that was used for a comparison to gives the type of match. For example if you hover an operator on a channel with the word "<@nick>", $hotlink(match) is "nick" where $hotlink(word) is "<@nick>"
    • event - returns the mouse event which triggered the on hotlink event, can be "mouse", "sclick", "uclick", "dclick", or "rclick"
    • line - returns the full line which triggered the on hotlink event.

Properties[edit]

  • .pos - the .pos property can only be used with "line", "word" and "match" items:
    • $hotlink(line).pos - returns the line's number in the window
    • $hotlink(word).pos - returns the Nth token number of the word in the line (Nth word)
    • $hotlink(match).pos - returns the position/index of the matching word in the line (Nth character), starting with an index count of 0.
  • .type - used only with "match" item, returns the type of match, can be "nick", "channel", "url" and "other"

Example[edit]

on *:hotlink:*:*:echo -a $hotlink(match)

Compatibility[edit]

Added: mIRC v7.24
Added on: 26 May 2012
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.


See Also[edit]

/hotlink on hotlink