- AuthorPosts
- February 25, 2008 at 6:52 am #5502drcasaMember
Hi all. If I have two different window tabs open, is it possible for me to search for text in one window tab, copy it, then paste it into the other window tab? When I try this using ctrl+tab to switch windows, the macro pastes the found text into the same window it copied it from.
Thanks,
DaveFebruary 26, 2008 at 12:37 am #5503Yutaka EmuraKeymasterdrcasa wrote:
Hi all. If I have two different window tabs open, is it possible for me to search for text in one window tab, copy it, then paste it into the other window tab? When I try this using ctrl+tab to switch windows, the macro pastes the found text into the same window it copied it from.Thanks,
DaveI am not sure exactly what you would like to do. Do you want to use a macro to paste one text in one tab to another text in another tab, and do you want to know how to write the macro?
February 26, 2008 at 4:49 am #5504drcasaMemberHi. What I am trying to accomplish is to search through an open document looking for a specific series of characters then copy that entire line into an open empty document. The macro should then go back to the first document and continue the search. I have been able to record the sequences of the macro that search for text, highlight the entire line then copy it but I have not been able to then swap to the other open document to perform the paste. I can manually swap to the other document via CTRL+TAB but that is not entered into the macro.
Thanks,
DaveFebruary 26, 2008 at 5:12 am #5505Yutaka EmuraKeymasterdrcasa wrote:
Hi. What I am trying to accomplish is to search through an open document looking for a specific series of characters then copy that entire line into an open empty document. The macro should then go back to the first document and continue the search. I have been able to record the sequences of the macro that search for text, highlight the entire line then copy it but I have not been able to then swap to the other open document to perform the paste. I can manually swap to the other document via CTRL+TAB but that is not entered into the macro.Thanks,
DavePlease refer to the Help, and you will find Next Document command in the Command section:
http://www.emeditor.com/help/cmd/window/next_window.htmThen, you will find the corresponding macro will be:
editor.ExecuteCommandByID(4245);
which is missing because this command is not recorded by EmEditor automatically. You will need to insert this line at the missing place. Alternatively, you can use Documents Collection and Document Object to enumerate documents and activate a selected document.
February 26, 2008 at 10:26 pm #5510drcasaMemberThanks, that works. Is there a reason that the next document command is not recorded?
Thanks,
DaveFebruary 26, 2008 at 10:31 pm #5511Yutaka EmuraKeymasterdrcasa wrote:
Thanks, that works. Is there a reason that the next document command is not recorded?Thanks,
DaveYes. Not all the commands are recorded. In this case, the macro will be interrupted if the Next Document command is executed when the Tab Bar is not enabled. I might consider adding more commands that can be recorded in the future.
- AuthorPosts
- You must be logged in to reply to this topic.