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[edit]
/hotlink -md [@menu]
Switches[edit]
- -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[edit]
- @menu - a custom menu to be used for the popup menu (only needed if you use -m)
Example[edit]
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[edit]
Added: mIRC v7.23
Added on: 19 Mar 2012
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.
See also[edit]
mIRC commands list