#6115

Yutaka Emura
Keymaster

owilsky wrote:
Yes, that will help me, as long as I can call that function with ExecuteCommandByID.
Then I can implement a trigger so that I have the behaviour I want.

This can then be executed “on group window close”:


if(editor.Documents.Count == 1 && document.Name.length == 0 && document.Saved) {
editor.ExecuteCommandByID(4332); //EEID_SAVE_WORKSPACE_QUIT_ALL
}

EEID_SAVE_WORKSPACE_QUIT_ALL does not work, as you said by design.

Oliver

Use


#define EEID_ERASE_WORKSPACE 4450

for “Erase Workspace” command.

EEID_SAVE_WORKSPACE_QUIT_ALL may not work inside a macro because it must quits EmEditor but it is executing a macro.