getCursorPositionX

Script::getCursorPositionX

Returns the mouse cursor horizontal position.

Declaration

int getCursorPositionX(WindowID windowID = NTSHENGN_WINDOW_UNKNOWN);

Parameters

Name

Type

Description

windowID

WindowID

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

Returns

The horizontal position of the mouse cursor relative to the window, with 0 being the left edge of the window.