after about 10 minutes, pops up:

Fatal error: not enough memory. It is recommended to end the program.
Can you increase this memory?
Code: Select all
var WM_USER = 0x0400;
var AEM_EMPTYUNDOBUFFER = WM_USER + 2055;
var hEditWnd = AkelPad.GetEditWnd();
AkelPad.SendMessage(hEditWnd, AEM_EMPTYUNDOBUFFER, 0, 0);
Having this simple script, just call it manually after massive replacements that surely do not need to be undone via Undo.sexy96 wrote:How do you call it at the right time?