WoW:API GetScreenResolutions: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 1: Line 1:
<center>'''GetScreenResolutions''' ''-Documentation by Astinus-''</center>
<center>'''GetScreenResolutions''' ''-Documentation by [[user:Astinus|Astinus]]-''</center>


Returns the resolution of the screen.
Returns a list of available screen resolutions.


  GetScreenResolutions();
  GetScreenResolutions();


----
== Parameters ==
;''Returns''
=== Arguments ===
 
=== Returns ===
:;Screen resolution in ####x#### format
== Example ==
 
/script Resolution1, Resolution2 = GetScreenResolutions();
 
/script DEFAULT_CHAT_FRAME:AddMessage(string.format("Resolution1 = %s", Resolution1));
----
/script DEFAULT_CHAT_FRAME:AddMessage(string.format("Resolution2 = %s", Resolution2));
;''Description''
 
: Returns a string value of the screen resolution.


====Result====
Resolution1 = 800x600
Resolution2 = 1024x768


==Details==
----
----
;''Example''
__NOTOC__
 
ScreenRes = GetScreenResolutions();
 
 
----
;''Bugged?''
 
At any resolution that I've tested at, it always returns "800x600"
 
----
{{Template:WoW API}}
{{Template:WoW API}}
 
[[Category:API Settings Functions|GetScreenResolutions]]
 
--[[User:Astinus|Astinus]] 20:32, 31 Jan 2005 (EST)

Revision as of 05:23, 17 October 2005

GetScreenResolutions -Documentation by Astinus-

Returns a list of available screen resolutions.

GetScreenResolutions();

Parameters

Arguments

Returns

Example

/script Resolution1, Resolution2 = GetScreenResolutions();
/script DEFAULT_CHAT_FRAME:AddMessage(string.format("Resolution1 = %s", Resolution1));
/script DEFAULT_CHAT_FRAME:AddMessage(string.format("Resolution2 = %s", Resolution2));

Result

Resolution1 = 800x600
Resolution2 = 1024x768

Details


Template:WoW API