Project

General

Profile

Hotlink » History » Revision 6

Revision 5 (Per Amundsen, 01/07/2017 03:02 PM) → Revision 6/9 (Per Amundsen, 01/07/2017 03:03 PM)

_Added in 2.7_ 

 */hotlink -md [@menu]* 

 Opens the default and/or a custom popup menu during a [[on HOTLINK]] right-click event. 

 _See also [[on HOTLINK]], [[$hotlink]], [[$hotline]], [[$hotlinepos]]._ 

 *Switches* 

 -m - Creates and opens a popup menu using a custom @menu 
 -d - If @menu is defined, adds the menu items from @menu to the default popup menu, otherwise shows the default popup menu. 

 *Parameters* 

 [@menu] - Custom popup menu. 

 *Replace menu Example* *Example* 

 <pre> 
 ; Create a popup menu called '@popup'. 
 menu @popup { 
   Popup text:echo -ag Popup menu 
 } 

 ; When right-clicking the word 'popup', open the custom '@popup' menu. 
 on *:hotlink:popup:*:{ 
   if ($hotlink(event) == rclick) { 
     hotlink -m @popup 
   } 
 } 
 </pre> 

 *Append menu Example* 

 <pre> 
 ; When right-clicking the word 'popup', open the default popup menu and add the custom '@popup' menu items. 
 on *:hotlink:popup:*:{ 
   if ($hotlink(event) == rclick) { 
     hotlink -dm @popup 
   } 
 } 

 ; Create a popup menu called '@popup'. 
 menu @popup { 
   Popup text:echo -ag Popup menu 
 } 
 </pre>