From WikiChip
/hotlink Command - mIRC
Commands & Identifiers
Basics
Events
Matching Tools
Data Storage
Control Structures
GUI Scripting
Sockets
Advanced Scripting
Additional Resources
Security
Other
The /hotlink command can be used to override the default popups menu when right clicking a word and triggering the on hotlink event.
Synopsis
/hotlink -md [@menu]
Switches
- -m - Creates a custom popup menu using a custom @menu
- -d - If you are rightclicking a type recognized by mIRC (such as an url, a nickname, or a channel), it adds the default popups for that type to the final popups menu
Parameters
- @menu - a custom menu to be used for the popup menu (only needed if you use -m)
Example
1) Add a right click menu item to look up commands and identifiers in the help file on mouse hover of /command and $identifier.
menu @helppop { Lookup Help $1:!help $remove($1, $chr(40), $chr(41)) } on $*:hotlink:/^[/$]\S+/:*:{ if ($hotlink(event) == rclick) { hotlink -m @helppop } }
2) Override mIRC's default popups for nickname and replace them with... mIRC's default popups! (useless but that's to show /hotlink -d, this isn't handling /return or halt to show the hand)
on *:hotlink:*:*:{ if ($hotlink(event) $hotlink(match).type == rclick nick) { ;no @menu with -d hotlink -d } }
Compatibility
Added: mIRC v2.1a
Added on: 28 Feb 1995
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.
See also
mIRC commands list