GetCurrentResolution

From Warcraft Wiki
Jump to navigation Jump to search
Flavors
Links
Info
Added in 1.0.0 / 1.13.2

Returns the index of the current screen resolution.

index = GetCurrentResolution()

Takes

Nothing

Returns

Number index
This value will be the index of one of the values yielded by GetScreenResolutions()

Example

message('The current screen resolution is ' .. ({GetScreenResolutions()})[GetCurrentResolution()])

Output:

The current screen resolution is 1024x768