Lua:getScreenWidth

From Cheat Engine
Jump to navigation Jump to search

<> Lua API Reference

function getScreenWidth() : integer

Returns the screen width.

Function Parameters[edit]

This function has no parameters.

Returns[edit]

integer — The width of the screen in pixels.

Examples[edit]

local width = getScreenWidth()
print("Screen width: " .. width)

Main Pages

Core Lua documentation entry points

Lua
Script Engine