If you want to have the .macro in the menu. You have to define the action in a toolbar file
Like this...
So in the .tbr-file
BUTTON my_button
LABEL My Button
BITMAP my_button.bmp
ACTIONS ${NX_CUSTOM_DIR}\global\automation\macro\application\my_button.macro
and in the .menu file
BUTTON...