From WikiChip
$submenu Identifier - mIRC
< mirc‎ | identifiers
Revision as of 14:54, 6 February 2018 by Ouims (talk | contribs) (Created page with "{{mirc title|$submenu Identifier}}'''$submenu''' can be used in popups definition to dynamically create a popup == Synopsis == <pre>$submenu($id($1))</pre> == Parameters ==...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

$submenu can be used in popups definition to dynamically create a popup


Synopsis

$submenu($id($1))

Parameters

  • $id - The name of the identifier called by mIRC, the parameter passed to it is always $1, used by mIRC to pass information to your identifier.

It calls $id first with the parameter "begin" then will pass an incremented integer starting at 1 and will increase as long as you return a correct popups definition, then will send "end"

Note: You cannot use this to create nested submenus, it will only build one single submenu.


Properties

None

Example

menu status  {
  Animal
  .$submenu($animal($1))
}
alias animal {
  echo -s > $1
  if ($1 == begin) return -
  if ($1 == 1) return Cow:echo Cow
  if ($1 == 2) return Llama:echo Llama
  if ($1 == 3) return Emu:echo Emu
  if ($1 == end) return -
}

Compatibility

Added: mIRC v6.0
Added on: 03 Feb 2002
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.


See Also