From WikiChip
Difference between revisions of "mirc/identifiers/$submenu"
< mirc‎ | identifiers

(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 ==...")
 
(No difference)

Latest revision as of 14:54, 6 February 2018

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


Synopsis[edit]

$submenu($id($1))

Parameters[edit]

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

None

Example[edit]

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

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]