Author Topic: Can't add user macros. "No user macros defined"  (Read 2102 times)

kitlomajama

  • Community Member
  • Posts: 9
  • Hero Points: 1
Can't add user macros. "No user macros defined"
« on: July 18, 2011, 08:22:42 am »
Hello,
I've been trying to get this fixed for the last few hours...

I've added macros in the /home/foo/.slickedit/15.0.1/vusrmacs.e file. However list-macros still says "No user macros defined".
I tried to manually Load vusrmacs.e as a Macro module (Macro > Load Module), but still I don't see my macros.

Interestly, when I create a "my_custom_macros.e" file and Load Module it, my macros are available (they still don't show up in list-macros).

Any help would be appreciated. I am using VS 15.0.1.3

Graeme

  • Senior Community Member
  • Posts: 2533
  • Hero Points: 329
Re: Can't add user macros. "No user macros defined"
« Reply #1 on: July 18, 2011, 11:38:03 am »
If you record a macro and save it in vusrmacs.e, it will have a name attribute of VSARG2_MACRO
e.g.
Code: [Select]
_command show_proj_properties() name_info(','VSARG2_MACRO|VSARG2_MARK|VSARG2_REQUIRES_MDI_EDITORCTL)
{
   _macro('R',1);
   execute('project-edit');
}

The VSARG2_MACRO attribute is what makes it appear in the list when you do list-macros.  It's not necessary for a macro to appear in the list-macros list for it to be functional  - the list is just to jog your memory or something I suppose.

Graeme