Project

General

Profile

Hotlink » History » Version 1

Per Amundsen, 01/04/2017 11:54 PM

1 1 Per Amundsen
_Added in 2.7_
2
3
*/hotlink -md [@menu]*
4
5
Opens the default and/or a custom popup menu during a [[on HOTLINK]] right-click event.
6
7
*Switches*
8
9
-m - Creates and opens a popup menu using a custom @menu
10
-d - If @menu is defined, adds the menu items from @menu to the default popup menu, otherwise shows the default popup menu.
11
12
*Parameters*
13
14
[@menu] - Custom popup menu.
15
16
*Example*
17
18
<pre>
19
; Create a popup menu called '@popup'.
20
menu @popup {
21
  Popup text:echo -ag Popup menu
22
}
23
24
; When right-clicking the word 'popup', open the custom '@popup' menu.
25
on *:hotlink:popup:*:{
26
  if ($hotlink(event) == rclick) {
27
    hotlink -m @popup
28
  }
29
}
30
31
; When right-clicking the word 'popup', open the default popup menu and add the custom '@popup' menu items.
32
on *:hotlink:popup:*:{
33
  if ($hotlink(event) == rclick) {
34
    hotlink -dm @popup
35
  }
36
}
37
</pre>