WoW API: Screenshot

From AddOn Studio
Revision as of 04:47, 15 August 2023 by Move page script (talk | contribs) (Move page script moved page API Screenshot to API Screenshot without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

WoW API < Screenshot

This function will take a screenshot.

Screenshot()

Parameters

Arguments

()

Returns

nil

Example

/script Screenshot();

Result

This function does same thing as pressing the PrtScn button on your keyboard. It will capture a screen image and write it to a file.
Naming
Save a file with the following format: "WoWScrnShot_MMDDYY_HHMMSS.tga".
Path
"...\World of Warcraft\Screenshots".
Format
The format can be controlled by the "screenshotFormat" Config.wtf variable which was introduced in Patch 1.11. It can be set to "tga" or "jpeg".