Cicode Programming Reference > Cicode Function Categories > Keyboard Functions Introduction > KeyGetCursor

KeyGetCursor

Gets the AN at the position of the command cursor.

If this function is called from within a larger piece of code, the cursor may have moved away from where it was originally positioned when the larger piece of code was started.

If you are using groups, and there are currently two command cursors, the AN for the innermost will be returned. For example, if there is a cursor for a group as well as a cursor for one of its objects, the AN for the object will be returned.

Syntax

KeyGetCursor()

Return Value

The AN at the position of the command cursor. If no cursor is visible, -1 is returned.

Related Functions

KeySetCursor

Example

! If the command cursor is on AN25:
AN=KeyGetCursor();
! Sets AN to 25.

See Also

Keyboard Functions