On HOTLINK » History » Version 2
Per Amundsen, 01/14/2017 04:44 PM
1 | 1 | Per Amundsen | _Added in 1.9.0_ |
---|---|---|---|
2 | |||
3 | *<notextile>on <level>:HOTLINK:<matchtext>:<*|#|?|=|!|@>:<commands></notextile>* |
||
4 | |||
5 | Triggers when you move your mouse over a specific word in a line of text in a window. |
||
6 | |||
7 | 2 | Per Amundsen | _See also [[/hotlink]], [[$hotlink]], [[$hotline]], [[$hotlinepos]], [[Scripting_Menus#Mouse-events|Mouse Events]]._ |
8 | 1 | Per Amundsen | |
9 | *Parameters* |
||
10 | |||
11 | <level> - The level for the event to trigger. |
||
12 | <matchtext> - The [[Matchtext]] to listen to. |
||
13 | <*|#|?|=|!|@> - The [[Matchtarget]] to listen to. |
||
14 | <commands> - The commands to be performed when the event listener's criteria is met. |
||
15 | |||
16 | *Example* |
||
17 | |||
18 | <pre> |
||
19 | 2 | Per Amundsen | on *:HOTLINK:*help*:#:{ |
20 | 1 | Per Amundsen | if ($1 == helpme) return |
21 | halt |
||
22 | } |
||
23 | |||
24 | on *:HOTLINK:*:*:echo clicked word $1 in line $hotline $hotlinepos |
||
25 | </pre> |