How do you write in macros in EmEditor to go down one line at a time in blue selection?
I'd like to do macro processing on a row-by-row basis in between.
editor.ExecuteCommandByID (4154);
Or
editor.ExecuteCommandByID (4437);
document.selection.LineDown(true,1);
In this macro, I was able to go down with one line selected by the arrow key, but the previous line selection is not missed, so when I press the arrow and the next line is selected, I want to leave the previous line unchecked.
The macro you want to do is
In combination with this
editor.ExecuteCommandByID (4199);
US>Select row by row to handle logical row macros
Select one line → re-translate macro execution → loop this until the last line is reached
Because of this, it will be a problem if the selection range of the previous line is not removed when it goes down.
Thank you for your cooperation.
You may want to add the method Collapse()
that you want to deselect first, as follows:
document.selection.Collapse();
document.selection.LineDown(true,1);
606 Uncaught (inpromise) Error on Electron: An object could not be cloned
567 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
577 PHP ssh2_scp_send fails to send files as intended
884 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
© 2024 OneMinuteCode. All rights reserved.