On HOTLINK » History » Version 6
Per Amundsen, 05/18/2018 08:41 PM
| 1 | 1 | Per Amundsen | _Added in 1.9.0_ |
|---|---|---|---|
| 2 | |||
| 3 | *<notextile>on <level>:HOTLINK:<matchtext>:<*|#|?|=|!|@>:<commands></notextile>* |
||
| 4 | |||
| 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 | 1 | Per Amundsen | if ($1 == helpme) return |
| 23 | 4 | Per Amundsen | halt |
| 24 | 1 | Per Amundsen | } |
| 25 | |||
| 26 | on *:HOTLINK:*:*:echo clicked word $1 in line $hotline $hotlinepos |
||
| 27 | </pre> |