From WikiChip
Editing mirc/commands/hotlink
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: | ||
− | + | The '''/hotlink command''' can be used to override the default menu as well as add additional items to the default menu from within the on hotlink event. | |
− | The '''/hotlink command''' can be used to override the default | + | |
+ | This event can only be used during the right-click event: | ||
+ | |||
+ | <syntaxhighlight lang="mIRC">if ($hotlink(event) == rclick) { | ||
+ | ; hotlink code | ||
+ | }</syntaxhighlight> | ||
== Synopsis == | == Synopsis == | ||
Line 6: | Line 11: | ||
== Switches == | == Switches == | ||
− | * '''-m''' - Creates a | + | * '''-m''' - Creates a popup menu using a custom @menu |
− | * '''-d''' - | + | * '''-d''' - Adds the items from @menu to the default popup menu |
== Parameters == | == Parameters == | ||
− | * '''@menu''' - a custom menu to be used for the popup menu | + | * '''@menu''' - a custom menu to be used for the popup menu |
− | |||
== Example == | == Example == | ||
− | + | The following example will add a right click menu item to look up commands and identifiers in the help file on mouse hover. | |
<syntaxhighlight lang="mIRC">menu @helppop { | <syntaxhighlight lang="mIRC">menu @helppop { | ||
Lookup Help $1:!help $remove($1, $chr(40), $chr(41)) | Lookup Help $1:!help $remove($1, $chr(40), $chr(41)) | ||
} | } | ||
− | on $*:hotlink:/^[/$]\S+/:*:{ | + | on ^$*:hotlink:/^[/$]\S+/:*:{ |
if ($hotlink(event) == rclick) { | if ($hotlink(event) == rclick) { | ||
hotlink -m @helppop | hotlink -m @helppop | ||
Line 25: | Line 29: | ||
}</syntaxhighlight> | }</syntaxhighlight> | ||
− | + | == Compatibility == | |
− | + | Added: mIRC v7.23 | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
+ | Added On: 19/03/2012 | ||
− | + | <small>Note: Individual switches were not taken into consideration.</small> | |
− | |||
== See also == | == See also == | ||
− | * | + | * [[List of commands - mIRC|List of commands]] |
− | * | + | * [[List of identifiers - mIRC|List of identifiers]] |
− | * | + | * [[$hotline identifier - mIRC|$hotline]] |
− | * | + | * [[$hotlinepos identifier - mIRC|$hotlinepos]] |
− | |||
[[Category:mIRC commands]] | [[Category:mIRC commands]] |