From WikiChip
Difference between revisions of "mirc/identifiers/$hotlink"
(Created page with "{{mirc title|$hotlink Identifier}}'''$hotlink''' returns informations about what triggered the {{mIRC|on hotlink}} event. == Synopsis == <pre>$hotlink(item)</pre> == Parame...") |
|||
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 == | ||
− | + | * '''.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 number matching word in the full line (Nth word) | ||
+ | ** '''$hotlink(match).pos''' - returns the index of the matching word in the line (returns the Nth word) | ||
+ | *'''.type''' - used only with "match" item, returns the type of match, can be "nick", "channel", "url" and "other" | ||
== Example == | == Example == | ||
− | <source lang="mIRC"> | + | <source lang="mIRC">on *:hotlink:*:*:echo -a $hotlink(match)</source> |
== Compatibility == | == Compatibility == | ||
− | {{mIRC compatibility|7. | + | {{mIRC compatibility|7.24}} |
== See Also == | == See Also == | ||
− | {{mIRC|/ | + | {{mIRC|/hotlink}} |
+ | {{mIRC|on hotlink}} | ||
− | [[Category:mIRC identifiers | + | [[Category:mIRC identifiers]] |
Revision as of 12:02, 1 January 2018
Commands & Identifiers
Basics
Events
Matching Tools
Data Storage
Control Structures
GUI Scripting
Sockets
Advanced Scripting
Additional Resources
Security
Other
$hotlink returns informations about what triggered the on hotlink event.
Synopsis
$hotlink(item)
Parameters
- 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
- .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 number matching word in the full line (Nth word)
- $hotlink(match).pos - returns the index of the matching word in the line (returns the Nth word)
- .type - used only with "match" item, returns the type of match, can be "nick", "channel", "url" and "other"
Example
on *:hotlink:*:*:echo -a $hotlink(match)
Compatibility
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.