Skip to main content

overwolf.media.takeWindowsScreenshotByName

Overwolf APIs / overwolf / overwolf / media / takeWindowsScreenshotByName

Call Signature

function takeWindowsScreenshotByName(
windowName: string,
postMediaEvent: boolean,
targetFolder: string,
callback: CallbackFunction<FileResult>,
): void;

Takes a window screenshot and calls the callback with the success status and the screenshot URL. The screenshot is saved to the screenshots folder.

Parameters

ParameterTypeDescription
windowNamestringThe window Name
postMediaEventbooleanset true to post media event (onMediaEvent)
targetFolderstringset target folder path to screen shot
callbackCallbackFunction<FileResult>A function called after the screenshot was taken.

Returns

void

Call Signature

function takeWindowsScreenshotByName(
windowName: string,
postMediaEvent: boolean,
callback: CallbackFunction<FileResult>,
): void;

Takes a window screenshot and calls the callback with the success status and the screenshot URL. The screenshot is saved to the screenshots folder.

Parameters

ParameterTypeDescription
windowNamestringThe window Name
postMediaEventbooleanset true to post media event (onMediaEvent)
callbackCallbackFunction<FileResult>A function called after the screenshot was taken.

Returns

void