Lua:getWorkAreaWidth

From Cheat Engine
Revision as of 00:09, 27 June 2026 by Leunsel (talk | contribs) (Examples: Syntax Highlight.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

<> Lua API Reference

function getWorkAreaWidth() : integer

Returns the work area width. (Excludes taskbars)

Function Parameters

This function has no parameters.

Returns

integer — The width of the screen work area in pixels.

Examples

1 local width = getWorkAreaWidth()
2 print("Work area width: " .. width)

Main Pages

Core Lua documentation entry points

Lua
Script Engine