setWindowPosition ================= :doc:`/types/Script/index`::setWindowPosition Sets the position of the window on the screen. Declaration ----------- .. code-block:: cpp void setWindowPosition(int x, int y, WindowID windowID = NTSHENGN_WINDOW_UNKNOWN); Parameters ---------- .. list-table:: :width: 100% :header-rows: 1 :class: code-table * - Name - Type - Description * - x - int - The new horizontal position of the window. * - y - int - The new vertical position of the window. * - windowID - :doc:`/types/WindowID/index` - The window to change the size of. By default, this window will be the main window. Returns ------- None. Notes ----- The main window will be used if ``windowID`` is equal to ``NTSHENGN_WINDOW_UNKNOWN``. The position's origin (0, 0) is the top-left corner of the main monitor.