Difference between revisions of "Lua:getMainForm"

From Cheat Engine
Jump to navigation Jump to search
m (Reverted edits by This content is not available (Talk) to last revision by TheyCallMeTim13)
m (Syntax Highlighting.)
Line 7: Line 7:
  
 
== Examples ==
 
== Examples ==
local mainForm = getMainForm()
+
<syntaxhighlight lang="lua" line>
local someTimer = createTimer(mainForm, false)
+
local mainForm = getMainForm()
 +
local someTimer = createTimer(mainForm, false)
 +
</syntaxhighlight>
  
 
{{LuaSeeAlso}}
 
{{LuaSeeAlso}}
  
=== Related Functions ===
+
{{Forms}}
* [[Lua:getForm|getForm]]
 
* [[Lua:getFormCount|getFormCount]]
 
* [[Lua:getMainForm|getMainForm]]
 
* [[Lua:getSettingsForm|getSettingsForm]]
 
* [[Lua:getLuaEngine|getLuaEngine]]
 
* [[Lua:registerFormAddNotification|registerFormAddNotification]]
 
 
 
=== Related Classes ===
 
* [[Lua:Class:Form|Form]]
 
* [[Lua:Class:Component|Component]]
 
* [[Lua:Class:Control|Control]]
 
* [[Lua:Class:WinControl|WinControl]]
 
* [[Lua:Class:Application|Application]]
 
* [[Lua:Class:Object|Object]]
 

Revision as of 19:53, 25 June 2026

function getMainForm() : Form

Returns the main Form.

Function Parameters

<none>

Examples

1 local mainForm = getMainForm()
2 local someTimer = createTimer(mainForm, false)

Main Pages

Core Lua documentation entry points

Lua
Script Engine

Form Related Classes