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