#6202
gning
Participant

Hah, never mind, I figured it out… and congratulations on having a macro system that allowed me, in the first evening using it, to whomp up a perfectly good “reflow all paragraphs in selection” macro:

var stateNoWrap = editor.QueryStatusByID(4208);
var stateWindowWrap = editor.QueryStatusByID(4210);
var statePageWrap = editor.QueryStatusByID(4318);
editor.ExecuteCommandByID(4209);
document.selection.Format(eeFormatJoinLines);
document.selection.Format(eeFormatSplitLines);
if (stateNoWrap >= eeStatusLatched)
editor.ExecuteCommandByID(4208);
else if (stateWindowWrap >= eeStatusLatched)
editor.ExecuteCommandByID(4210);
else if (statePageWrap >= eeStatusLatched)
editor.ExecuteCommandByID(4318);

That’s enough to persuade me to register.