Skip to main content

overwolf.windows.changePosition

Overwolf APIs / overwolf / overwolf / windows / changePosition

function changePosition(
windowId: string,
left: number,
top: number,
callback?: CallbackFunction<WindowIdResult>,
): void;

Changes the window position in pixels from the top left corner.

Parameters

ParameterTypeDescription
windowIdstringThe id or name of the window for which to change the position.
leftnumberThe new window position on the X axis in pixels from the left.
topnumberThe new window position on the Y axis in pixels from the top.
callback?CallbackFunction<WindowIdResult>A callback which is called when the position change is completed.

Returns

void