Difference between revisions of "Lua:getScreenHeight"

From Cheat Engine
Jump to navigation Jump to search
(Created page with "<p> <b>getScreenHeight()</b>: Returns the screen height </p> <pre> print(getScreenHeight()) </pre>")
 
 
Line 1: Line 1:
<p>
+
[[Category:Lua]]
<b>getScreenHeight()</b>: Returns the screen height
+
{{CodeBox|'''function''' getScreenHeight() ''':''' integer}}
</p>
+
 
 +
Returns the screen height.
 +
 
 +
===Function Parameters===
 +
This function has no parameters.
 +
 
 +
===Returns===
 +
integer — The height of the screen in pixels.
 +
 
 +
===Examples===
 +
 
 
<pre>
 
<pre>
print(getScreenHeight())
+
local height = getScreenHeight()
 +
print("Screen height: " .. height)
 
</pre>
 
</pre>
 +
 +
{{LuaSeeAlso}}

Latest revision as of 03:44, 21 June 2026

<> Lua API Reference

function getScreenHeight() : integer

Returns the screen height.

Function Parameters[edit]

This function has no parameters.

Returns[edit]

integer — The height of the screen in pixels.

Examples[edit]

local height = getScreenHeight()
print("Screen height: " .. height)

Main Pages

Core Lua documentation entry points

Lua
Script Engine