# Executing Commands

The description of the main window already mentioned some ways of executing commands in MOLMOL. This section gives a more complete and detailed list of how you can enter commands.

- All commands can be executed by selecting them in a pulldown menu. Commands that need arguments will ask for them using a dialog box.
- Users that prefer keyboard input can enter commands on the command line. Parts of commands that are unique are completed automatically. It is possible to also enter the command arguments on the command line. If no or only part of the arguments are given, a dialog box will appear.
- If you have a three button mouse, you can access some frequently used commands from the popup menu associated to the right mouse button.
- Some frequently used commands and command combinations can be executed by using the buttons on the right side of the drawing area.
- Some commands have keyboard accelerators, they can be seen in the pulldown menu. These commands can be executed by using the corresponding key combination anywhere in the main window.
- If you have the log window open (use the `UserInterface` command to open it if it is closed), you can repeat previous commands by clicking on them in there.
- You can execute command macros with the `XMacStand` (see section macro_user) and `XMacUser` (see section macro_user) commands.
- The UNIX version executes commands that it receives on standard input. This can be used to interface MOLMOL with other programs, e. g. by writing a program (shell script) that generates commands and then piping the output of this program into MOLMOL.

Command arguments can be arbitrary expressions, as documented in the section about expression syntax.

Last modified: Mon Jan 20 19:44:56 CST 2003