- AuthorPosts
- September 19, 2010 at 7:07 am #8988derekcohenParticipant
I tried recording a macro to sort a selection by doing
Narrowing on
Sort a-z
Narrowing offbut it merely recorded mouse positions.
What’s the API calls for this?
thanks
Derek
September 19, 2010 at 10:03 pm #8993Yutaka EmuraKeymasterHello Derek,
Not all operations are recorded automatically. Please see Help for macro methods. Here is an example:
Narrowing on:
editor.ExecuteCommandByID(4457);
http://www.emeditor.com/help/cmd/edit/narrowing_on.htmNarrowing off:
editor.ExecuteCommandByID(4458);
http://www.emeditor.com/help/cmd/edit/narrowing_off.htmSort A to Z:
editor.ExecuteCommandByID(4477);
http://www.emeditor.com/help/cmd/edit/sort_text_a.htmSeptember 28, 2010 at 2:01 pm #9014derekcohenParticipantThat’s great.
I have created a macro
//narrowing on
editor.ExecuteCommandByID(4457);
//sort A-Z
editor.ExecuteCommandByID(4477);
//narrowing off
editor.ExecuteCommandByID(4458);and added it to one of the menus but it displays the name of the macro file – is there a way for it to display “Sort selection” rather than “sortselection.jsee”
thanks
Derek
September 28, 2010 at 9:17 pm #9019Yutaka EmuraKeymasterHello Derek,
When you add a macro to a menu, there is a text box called “Name” on the Menu Properties. You can enter whatever name you want to be appeared in the menu.
- AuthorPosts
- You must be logged in to reply to this topic.