#5956

Yutaka Emura
Keymaster

deepbirch wrote:
In emeditor jscript macro, How can I select A from B. A and B is the word I want to found.
belowed text I want to select from A to B
ex) dfdefdsfesdfefsdfesdfef A dfesdfefsdfdfesdfefsdf
sdfesxdfewdfsfss dfesdfesdfesdfesdfsesdfesdf
sdfedefefsfesfsefdsffesdfefsdfefsfsdfedsfsefsdfsefsdf
sdfesdfe B
dfdf efdfe


document.selection.StartOfDocument(false);
document.selection.Find("A",eeFindNext | eeFindReplaceCase);
document.selection.CharLeft(false,1);
editor.ExecuteCommandByID(4153);
document.selection.Find("B",eeFindNext | eeFindReplaceCase);