Project

General

Profile

On HOTLINK » History » Version 4

Per Amundsen, 05/18/2018 08:39 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 3 Per Amundsen
<level> - The [[User Access Level]] for the event to trigger.
12 1 Per Amundsen
<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 4 Per Amundsen
  halt
22 1 Per Amundsen
}
23
24
on *:HOTLINK:*:*:echo clicked word $1 in line $hotline $hotlinepos
25
</pre>