#11024

BobBailey
Participant

I also have a shortcut that runs at startup:
“C:Program FilesEmEditorEmEditor.exe” D:BobBootLog.txt /mf “D:My MacrosAddTimestampLine.jsee”

AddTimestampLine.jsee Macro:
document.selection.EndOfDocument(false);
document.selection.InsertDate(eeDateDateTime);
document.selection.NewLine(1);
document.selection.CharLeft(false,1);
document.selection.Text=” “;
document.ReadOnly=false;
editor.ExecuteCommandByID(4099);

This used to run, insert the line, set the cursor at the end of the last line of data, not the last line of the file, and leave the focus on the EmEditor window. It still adds the date/time stamp but the cursor is at the top and there is no focus.