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

(Properties)
 
(One intermediate revision by the same user not shown)
Line 15: Line 15:
 
* '''.pos''' - the .pos property can only be used with "line", "word" and "match" items:
 
* '''.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(line).pos''' - returns the line's number in the window
** '''$hotlink(word).pos''' - returns the number matching word in the full line (Nth word)
+
** '''$hotlink(word).pos''' - returns the Nth token number of the word in the line (Nth word)
** '''$hotlink(match).pos''' - returns the index of the matching word in the line (returns the 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"
 
*'''.type''' - used only with "match" item, returns the type of match, can be "nick", "channel", "url" and "other"
  

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