EmEditor Home - EmEditor Help - EmEditor Macro Reference - Selection Object

SetActivePoint Method

Sets the cursor position.


document.selection.SetActivePoint( nFlags, xPos, yPos, bExtend );


document.selection.SetActivePoint nFlags, xPos, yPos, bExtend



Specifies a combination of the following values:

eePosView Specifies by the column position and the line number in view.
eePosLogical Specifies by the number of characters and lines from the previous new lines (or the start of the document if the first line).
eePosLogicalA Same as eePosLogical but counts a full-width character as 2.
eePosCell CSV cell unit


Specifies the column number of the cursor position.


Specifies the line number of the cursor position.


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.


Supported on EmEditor Professional Version 4.00 or later.

Copyright 2003-2016 by Emurasoft, Inc.