getWindowPositionX

Script::getWindowPositionX

Returns the horizontal position of the window on the screen.

Declaration

int getWindowPositionX(WindowID windowID = NTSHENGN_WINDOW_UNKNOWN);

Parameters

Name

Type

Description

windowID

WindowID

The window to get the horizontal position of. By default, this window will be the main window.

Returns

The horizontal position of the window on the screen.

Notes

The main window will be used if windowID is equal to NTSHENGN_WINDOW_UNKNOWN.

The position’s origin on the window is the top-left corner of the window.

The position’s origin (0, 0) on the screen is the top-left corner of the main monitor.