WoW:API Screenshot: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
m (Move page script moved page API Screenshot to API Screenshot without leaving a redirect)
 
(4 intermediate revisions by 4 users not shown)
Line 5: Line 5:
  Screenshot()
  Screenshot()
== Parameters ==
== Parameters ==
=== Arguements ===
=== Arguments ===
:()
:()


=== Returns ===
=== Returns ===
:<i>nil</i>
:''nil''


== Example ==
== Example ==
Line 16: Line 16:
==== Result ====
==== 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.
: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".
:;Naming
:;Path : "...\World of Warcraft\Screenshots".
:: 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".


----
----


: [[User:Gilean|Gilean]] 13:48, 2 July 2006 (CDT)
:
: [[User:Golgor|Golgor]] 15:13, 6 April 2006 (EDT)
:
:

Latest revision as of 04:47, 15 August 2023

WoW API < Screenshot

This function will take a screenshot.

Screenshot()

Parameters[edit]

Arguments[edit]

()

Returns[edit]

nil

Example[edit]

/script Screenshot();

Result[edit]

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".