Difference between revisions of "Lua:getForm"

From Cheat Engine
Jump to navigation Jump to search
(Created page with ''''function''' getForm(''Index'') Returns the form at the specific index. === Function Parameters === {|width="85%" cellpadding="10%" cellpadding="5%" cellspacing="0" border="0…')
 
(Related Functions)
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
[[Category:Lua]]
 
'''function''' getForm(''Index'')
 
'''function''' getForm(''Index'')
  
Line 17: Line 18:
 
  for i = 1, getFormCount() - 1 do
 
  for i = 1, getFormCount() - 1 do
 
   local frm = getForm(i)
 
   local frm = getForm(i)
   if frm.ClassName = 'TMainForm' then
+
   print(frm.ClassName)
    -- ...
+
  print(frm.Caption)
    break
 
  end
 
 
  end
 
  end
  
== See also ==
+
{{LuaSeeAlso}}
* [[Lua]]
 
* [[Help_File:Script engine|Script engine]]
 
  
 
=== Related Functions ===
 
=== Related Functions ===
* [[getFormCount]]
+
* [[Lua:getFormCount|getFormCount]]
* [[getMainForm]]
+
* [[Lua:getMainForm|getMainForm]]
* [[getSettingsForm]]
+
* [[Lua:getSettingsForm|getSettingsForm]]
* [[getMemoryViewForm]]
+
* [[Lua:getMemoryViewForm|getMemoryViewForm]]
* [[getLuaEngine]]
+
* [[Lua:getLuaEngine|getLuaEngine]]
* [[registerFormAddNotification]]
+
* [[Lua:registerFormAddNotification|registerFormAddNotification]]

Revision as of 01:11, 25 January 2018

function getForm(Index)

Returns the form at the specific index.

Function Parameters

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

Examples

for i = 1, getFormCount() - 1 do
  local frm = getForm(i)
  print(frm.ClassName)
  print(frm.Caption)
end

See also

Related Functions