getCursorPositionY

Script::getCursorPositionY

Returns the mouse cursor vertical position.

Declaration

int getCursorPositionY(WindowID windowID = NTSHENGN_WINDOW_UNKNOWN);

Parameters

Name

Type

Description

windowID

WindowID

The window to check the vertical cursor position on. By default, this window will be the main window.

Returns

The vertical position of the mouse cursor relative to the window, with 0 being the top edge of the window.