doMenu

Typecommand
DictionaryLCS
LibraryLiveCode Script
Syntax
doMenu <menuItem> [of menu <menuName>]
Summary

Simulates a choice from a menu.

Introduced1.0
OSmac, windows, linux
Platformsdesktop, server
Parameters
NameTypeDescription
menuItem

The name of a menu item.

menuName

The name of the menu in which the menuItem appears.

Example
doMenu "New Card" of menu "Object"
doMenu (line 10 of tList)
RelatedCommand: copy, enable menu, paste
Glossary: LiveCode, command, menu item, HyperCard
Keyword: menuItem, menu
Description

Use the doMenu command to choose a menu item.

The doMenu command is not implemented for all menuitems. This command is included in LiveCode for compatibility with imported HyperCard stacks.

Tagsmenus