Project

General

Profile

On HOTLINK » History » Revision 7

Revision 6 (Per Amundsen, 05/18/2018 08:41 PM) → Revision 7/8 (Per Amundsen, 05/18/2018 08:42 PM)

_Added in 1.9.0_ 

 *<notextile>on <level>:HOTLINK:<matchtext>:<*|#|?|=|!|@>:<commands></notextile>* 

 Triggers when you move your mouse over a specific word or click/double-click a specific word in a line of text in a window. 

 Unless you use [[/halt]] inside the event, the cursor will change from arrow to a hand/link. 

 _See also [[/hotlink]], [[$hotlink]], [[$hotline]], [[$hotlinepos]], [[Scripting_Menus#Mouse-events|Mouse Events]]._ 

 *Parameters* 

 <level> - The [[User Access Level]] for the event to trigger. 
 <matchtext> - The [[Matchtext]] to listen to. 
 <*|#|?|=|!|@> - The [[Matchtarget]] to listen to. 
 <commands> - The commands to be performed when the event listener's criteria is met. 

 *Example* 

 <pre> 
 on *:HOTLINK:*help*:#:{ 
   ; If the matched word is 'helpme', make it a click-able link. 
   if ($1 == helpme) return 
   ; Otherwise halt and let AdiIRC determine what to do. 
   halt 
 } 

 on *:HOTLINK:*:*:echo clicked word $1 in line $hotline $hotlinepos 
 </pre>