From WikiChip
$submenu Identifier - mIRC
< mirc‎ | identifiers

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




  • $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.




menu status  {
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 -


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[edit]