# (menucmd string)
[GstarCAD 2011](../../../Index.md) → [Developer Reference](../../%28Developer%20Reference%29.md) → [AutoLISP Reference](../%28AutoLISP%20Reference%29.md) → [LISP Functions](%28LISP%20Functions%29.md)
<a id="225"></a>
## (menucmd string)
---
Execute that menu command.
---
This function executes a command in the menu bar (cursor menu and pull-down menus). The *string* parameter uses the following formats:
**"***menu***\=***value***"**
**"***menu***\=\*"**
The *menu* parameter has two parts-for example **(menucmd "P1.2\=\*)**. In this case, the "P1" refers to the first pull-down menu (usually the **File** menu). the ".2" refers to the first item on the menu (usually the **Open** item). The first values of **menu** permitted in GstarCAD® are:
| Menu | Meaning |
| --- | --- |
| P0 | Cursor menu |
| P1 \- P16 | Pull-down menus 1-16 |
The *value* parameter has the following meanings:
| Value | Meaning |
| --- | --- |
| ? | What is status of the menu item? |
| \* | Display the menu. |
| \~ | Disable the menu item (grayed out). |
| !. | Prefix menu item with a check mark. |
| | (blank) Remove properties. |
| *name* | Load the menu name. |
### Examples
| Code | Meaning |
| --- | --- |
| (**menucmd** "P3\=\*") | Display menu #3 (the **View** menu). |
| (**menucmd** "P3.1\=\~") | Disable menu #3, item #1 (the **View \| Redraw** menu item). |
| (**menucmd** "P3.1\=") | Re enable the **View \| Redraw** item. |
**Tell me about...**
[(command cmd \[arguments\] ...)](%28command%20cmd%20-arguments-%20...%29.md)
[(menugroup name)](IDR_LISP_B226.md)
[LISP Compatibility](../LISP%20Compatibility.md)
[Programming Overview of LISP (LISt Processing) Language](../Programming%20Overview%20of%20LISP%20%28LISt%20Processing%29%20Language.md)
<a id="holding"></a>
## Other versions with matching text
[GstarCAD 2012](../../../../2012/Developer%20Reference/AutoLISP%20Reference/LISP%20Functions/%28menucmd%20string%29.md)