#10350
Stefan
Participant

In the meantime i can help me with an macro.

– find/go to the wanted start position for the selection.
– set an bookmark (toggle: Ctrl+F2).
– find/go to the end position of the wanted selection.
– execute this macro:

o = document.selection;
EndLine = o.GetActivePointY( eePosLogical );
document.selection.PreviousBookmark();
o.SetActivePoint( eePosLogical, 1, EndLine, true );

The same but wiith explanations:



////Returns the line number of the cursor position:
yPosEndLine = document.selection.GetActivePointY( eePosLogical );


////Goes to the previous bookmark in this document:
document.selection.PreviousBookmark();


////Sets the cursor position:
////bExtend: Optional. Determines whether to extend the current selection.
////If bExtend is true, then the active end of the selection moves to
////the location while the anchor end remains where it is.
////Otherwise, both ends are moved to the specified location.
bExtend = true;
xPos = 1;
document.selection.SetActivePoint( eePosLogical, xPos, yPosEndLine, bExtend );