Page 1 of 1

How to run/execute preexisting menu cmds?

Posted: Wed Nov 20, 2013 9:01 pm
by greglentz
Is there a way in the macro language to call/run an existing menu cmd that you would normally do with a mouse? For a simple example: something like activatemenu(file, open). There are some preexisting menu items in chemstation that I would like to call/execute from a macro. Being able to do so would be simpler/more direct than writing my own macro code to do the same thing.

If there is, then for menu items that open a dialog box for additional user input is there a way to pass appropriate values via the macro to eliminate the user having to enter that information?

Greg

Re: How to run/execute preexisting menu cmds?

Posted: Wed Nov 20, 2013 10:44 pm
by GasMan
Greg,

The command 'SelectFile' might do what you are trying to achieve. Details of this command can be found in C:\Chem32\Core\helpenu\commands.chm

Gasman