Skip to main content

overwolf.windows.sendMessage

Overwolf APIs / overwolf / overwolf / windows / sendMessage

function sendMessage(
windowId: string,
messageId: string,
messageContent: any,
callback: CallbackFunction<WindowIdResult>,
): void;

Sends a message to an open window.

Parameters

ParameterTypeDescription
windowIdstringThe id or name of the window to send the message to.
messageIdstringA message id.
messageContentanyThe content of the message.
callbackCallbackFunction<WindowIdResult>Called with the status of the request

Returns

void