Jump to content
Toggle menu
  • 17.3K articles
  • 8.2K files
  • 5 users
  • 280.7K edits
WoW Classic Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

API TakeScreenshot

From WoW Classic Wiki
"I" iconThis function is not a real API. It is defined by FrameXML in FrameXML/WorldFrame.lua.


TakeScreenshot();

Takes a screenshot.


Parameters

Arguments

none

Returns

nil


Example

TakeScreenshot();


Details

Takes a screenshot. By default, it is saved as a Targa .tga file in the Screenshots folder of your World of Warcraft installation folder. The format can be controlled by the "screenshotFormat" Config.wtf variable which was introduced in Patch 1.11. It can be set to "tga" (default), "jpeg" or "png".
TakeScreenshot() is a blocking call. Once called the remainder of your Lua script is not executed. If you have script that you need to execute post screenshot you will need to use a state machine and subscribe to the OnUpdate event, or you will need to subscribe to the following events:
  • SCREENSHOT_FAILED Called when a screenshot fails.
  • SCREENSHOT_SUCCEEDED Called when a screenshot is successfully taken.