Difference between revisions of "Lua:getWorkAreaWidth"

From Cheat Engine
Jump to navigation Jump to search
(Created page with "Category:Lua {{CodeBox|'''function''' getWorkAreaWidth() ''':''' integer}} Returns the work area width. ===Function Parameters=== This function has no parameters. ===Re...")
 
m
Line 2: Line 2:
 
{{CodeBox|'''function''' getWorkAreaWidth() ''':''' integer}}
 
{{CodeBox|'''function''' getWorkAreaWidth() ''':''' integer}}
  
Returns the work area width.
+
Returns the work area width. (Excludes taskbars)
  
 
===Function Parameters===
 
===Function Parameters===
This function has no parameters.
+
This function has no parameters.  
  
 
===Returns===
 
===Returns===

Revision as of 03:47, 21 June 2026

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

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

Main Pages

Core Lua documentation entry points

Lua
Script Engine