EmEditor (text editor) Forum Index Questions and Answers about Macros
sort selection | Register To Post |
| Threaded | Newest First | Previous Topic | Next Topic | Bottom |
| Poster | Thread |
|---|---|
| derekcohen | Posted on: 9/18/2010 11:07 pm |
Not too shy to talk ![]() ![]() Joined: 5/22/2010 From: Posts: 38 |
sort selection I tried recording a macro to sort a selection by doing
Narrowing on Sort a-z Narrowing off but it merely recorded mouse positions. What's the API calls for this? thanks Derek |
| Yutaka | Posted on: 9/19/2010 2:03 pm |
Webmaster ![]() ![]() Joined: 9/28/2006 From: Redmond Posts: 2397 |
Re: sort selection Hello 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.htm Narrowing off: editor.ExecuteCommandByID(4458); http://www.emeditor.com/help/cmd/edit/narrowing_off.htm Sort A to Z: editor.ExecuteCommandByID(4477); http://www.emeditor.com/help/cmd/edit/sort_text_a.htm
|
| derekcohen | Posted on: 9/28/2010 6:01 am |
Not too shy to talk ![]() ![]() Joined: 5/22/2010 From: Posts: 38 |
Re: sort selection That'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 |
| Yutaka | Posted on: 9/28/2010 1:17 pm |
Webmaster ![]() ![]() Joined: 9/28/2006 From: Redmond Posts: 2397 |
Re: sort selection Hello 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.
|
| Threaded | Newest First | Previous Topic | Next Topic | Top |
| Register To Post | |




