Documentazione mIRC

$submenu

$submenu

Indice

mIRC

Commands & Identifiers

Basics

Events

Matching Tools

Data Storage

Control Structures

GUI Scripting

Sockets

Advanced Scripting

Additional Resources

Security

Other

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

Contents

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