#8562

Yutaka Emura
Keymaster

Hello Derek,

Thank you for using EmEditor Professional!

Some commands (like Close command) work differently depending on where the focus is. To avoid this problem, you can first run “Active Pane” command to keep the focus from custom bars. So, please try adding the following line before the top of your macro.

editor.ExecuteCommandByID(4409);

Therefore, your “Close All” macro will become:

editor.ExecuteCommandByID(4409);
editor.ExecuteCommandByID(4384);
editor.ExecuteCommandByID(4117);

If you have further questions, please let me know.
Thank you!