![quartzcode use relative frame quartzcode use relative frame](https://cdn.mos.cms.futurecdn.net/HEXEBMvcHC6MvNnSttafZR.jpg)
* screenshotParams A JSON containing the parameters of the screenshot.įunction getScreenshotUrl ( screenshotParams: any, callback: ( result: any ) => void ): void The screenshot will only be placed in the memory and will not be saved to a file (better performance). * Takes a memory screenshot and calls the callback with the success status and the screenshot URL. * targetFolder set target folder path to screen shotįunction takeWindowsScreenshotByHandle ( windowHandle: number, postMediaEvent: boolean, targetFolder: string, callback: ( ) => void ): voidįunction takeWindowsScreenshotByHandle ( windowHandle: number, postMediaEvent: boolean, callback: ( ) => void ): voidįunction takeWindowsScreenshotByName ( windowName: string, postMediaEvent: boolean, targetFolder: string, callback: ( ) => void ): voidįunction takeWindowsScreenshotByName ( windowName: string, postMediaEvent: boolean, callback: ( ) => void ): void * postMediaEvent set true to posr media event (onMediaEvent) The screenshot is saved to the screenshots folder. * Takes a window screenshot and calls the callback with the success status and the screenshot URL. * targetFolder Target screen shot folder path.įunction takeScreenshot ( targetFolder: string, callback: ( ) => void ): void * callback A function called after the screenshot was taken.įunction takeScreenshot ( callback: ( ) => void ): void * Takes a screenshot and calls the callback with the success status and the screenshot URL. * overrideFile true if you want an existing file to be overriden, false otherwise.įunction copyFile ( src: string, dst: string, overrideFile: boolean, reserved: boolean, callback: ( status: any ) => void ): void * dst The destination path (including filename) to copy to. * src a relative (to the root of your extension's folder) file path or a full overwolf-extension:// URI to the source file to be copied * Copy a file from the local extension directory to a destination on the localmachine * callback Called with the status of the request and the file contect.įunction readFileContents ( filePath: string, encoding: any, callback: ( status: any, message: string ) => void ): void * callback Called with the status of the request.įunction writeFileContents ( filePath: string, content: string, encoding: any, triggerUacIfRequired: boolean, callback: ( status: any ) => void ): void * triggerUacIfRequired If additional permissions are required, allows the triggering of the Windows UAC dialog. * encoding The encoding to use, see more at * filePath The full path of the file to write to. Otherwise, the file's content will be overwritten. If the file doesn't exist, it will be created, along with any needed directories along the path. * Checks for the existance of the file in the given path.įunction fileExists ( filePath: string, callback: ( status: any, found: boolean ) => void ): void ProcessId: number // TODO: check if this is right