Difference between revisions of "Lua:getForm"

From Cheat Engine
Jump to navigation Jump to search
m
 
(4 intermediate revisions by 3 users not shown)
Line 16: Line 16:
  
 
== Examples ==
 
== Examples ==
for i = 1, getFormCount() - 1 do
+
<syntaxhighlight lang="lua" line>
  local frm = getForm(i)
+
for i = 0, getFormCount() - 1 do
  print(frm.ClassName)
+
  local frm = getForm(i)
  print(frm.Caption)
+
  print(frm.ClassName)
end
+
  print(frm.Caption)
 +
end
 +
</syntaxhighlight>
  
 
{{LuaSeeAlso}}
 
{{LuaSeeAlso}}
  
=== Related Functions ===
+
{{Forms}}
* [[getFormCount]]
 
* [[getMainForm]]
 
* [[getSettingsForm]]
 
* [[getMemoryViewForm]]
 
* [[getLuaEngine]]
 
* [[registerFormAddNotification]]
 

Latest revision as of 19:54, 26 June 2026

function getForm(Index)

Returns the form at the specific index.

Function Parameters[edit]

Parameter Type Description
Index integer The index of the form to get

Examples[edit]

1 for i = 0, getFormCount() - 1 do
2   local frm = getForm(i)
3   print(frm.ClassName)
4   print(frm.Caption)
5 end

Main Pages

Core Lua documentation entry points

Lua
Script Engine

Form Related Classes