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

SetActivePoint Method

Sets the cursor position.

[JavaScript]

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

[VBScript]

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

Parameters

nFlags

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.

xPos

Specifies the column number of the cursor position.

yPos

Specifies the line number of 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.

Version

Supported on EmEditor Professional Version 4.00 or later.

Copyright 2003-2014 by Emurasoft, Inc.