Do you really intend to bring up the right click context menu at the end there, or is that just some attempt to attempt getting a right click for the first command? For the latter, that won't work, as CMENUR doesn't perform a right click, it is just the command that gets called as a result of a right click (in the drawing area, assuming no other command is active)
My commands (hopefully that is what SkidAce needed) will simply bring up the Dialog to select a named view directly without having to answer the command prompt first (The dialog is the default right click action on the command line, but you can also manually type in a view name to bypass the dialog, but that requires you know the view name)
; is used to separate inputs. By placing it right after the command, you basically tell CC3+ that there is no input for the first parameter, which makes it use the default value (assuming there is one). (This is also what right clicking does, telling CC3+ to use the default value)
To add it as a button, just open a menu file and look for the lines starting with #, those are the toolbar buttons. Should be more than enough examples in there.
Comments
What you probably want is
MACRO ZN ZNAMEM; ENDM
or the equivalent
MACRO ZN ZNAMEM ENDM
My goal is to assign it to a button icon, so I can choose my named view without navigating through the menus.
To add it as a button, just open a menu file and look for the lines starting with #, those are the toolbar buttons. Should be more than enough examples in there.
#630,CC2OPENND:[Zoom Named]|ZN;
/thumbsup