WoW:API TakeScreenshot: Difference between revisions
Jump to navigation
Jump to search
TakeScreenshot -Documentation by AlexanderYoshi-
No edit summary |
(Added note on related events that might be helpful.) |
||
Line 25: | Line 25: | ||
: Takes a screenshot. It is saved as a Targa .tga file in the Screenshots folder of your World of Warcraft installation folder. | : Takes a screenshot. It is saved as a Targa .tga file in the Screenshots folder of your World of Warcraft installation folder. | ||
: 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. | |||
---- | ---- | ||
{{Template:WoW API}} | {{Template:WoW API}} |
Revision as of 15:04, 17 December 2004
Takes a screenshot.
TakeScreenshot();
- Arguments
- none
- Returns
- nil
- Example
TakeScreenshot();
- Result
- Description
- Takes a screenshot. It is saved as a Targa .tga file in the Screenshots folder of your World of Warcraft installation folder.
- 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.