On HOTLINK » History » Version 8
Per Amundsen, 04/01/2022 03:32 AM
| 1 | 1 | Per Amundsen | _Added in 1.9.0_ |
|---|---|---|---|
| 2 | |||
| 3 | 8 | Per Amundsen | *<notextile>on <level>:HOTLINK:<matchtext>:<*|#|?|=|@>:<commands></notextile>* |
| 4 | 1 | Per Amundsen | |
| 5 | 5 | Per Amundsen | 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. |
| 6 | 1 | Per Amundsen | |
| 7 | 6 | Per Amundsen | Unless you use [[/halt]] inside the event, the cursor will change from arrow to a hand/link. |
| 8 | |||
| 9 | 2 | Per Amundsen | _See also [[/hotlink]], [[$hotlink]], [[$hotline]], [[$hotlinepos]], [[Scripting_Menus#Mouse-events|Mouse Events]]._ |
| 10 | 1 | Per Amundsen | |
| 11 | *Parameters* |
||
| 12 | |||
| 13 | 3 | Per Amundsen | <level> - The [[User Access Level]] for the event to trigger. |
| 14 | 1 | Per Amundsen | <matchtext> - The [[Matchtext]] to listen to. |
| 15 | <*|#|?|=|!|@> - The [[Matchtarget]] to listen to. |
||
| 16 | <commands> - The commands to be performed when the event listener's criteria is met. |
||
| 17 | |||
| 18 | *Example* |
||
| 19 | |||
| 20 | <pre> |
||
| 21 | 2 | Per Amundsen | on *:HOTLINK:*help*:#:{ |
| 22 | 7 | Per Amundsen | ; If the matched word is 'helpme', make it a click-able link. |
| 23 | 1 | Per Amundsen | if ($1 == helpme) return |
| 24 | 7 | Per Amundsen | ; Otherwise halt and let AdiIRC determine what to do. |
| 25 | 4 | Per Amundsen | halt |
| 26 | 1 | Per Amundsen | } |
| 27 | |||
| 28 | on *:HOTLINK:*:*:echo clicked word $1 in line $hotline $hotlinepos |
||
| 29 | </pre> |