Added in 1.9.1
$menucontext
Returns the context of a menu event.
window/hotlink/toolbar/treebar
See also $menutype, $menu, Menus.
Example
menu @Example {
  Menu Name:echo -ag Menu name is $menu
  Menu Type:echo -ag Menu type is $menutype
  Menu Context:echo -ag Menu context is $menucontext
}