Difference between revisions of "Lua:createFormFromStream"

From Cheat Engine
Jump to navigation Jump to search
(Initial page creation.)
 
m (Added related function template.)
 
Line 21: Line 21:
  
 
===Examples===
 
===Examples===
<pre>
+
<syntaxhighlight lang="lua" line>
 
local stream = createMemoryStream()
 
local stream = createMemoryStream()
 
stream.loadFromFile("C:\\MyTrainer\\layout.frm")
 
stream.loadFromFile("C:\\MyTrainer\\layout.frm")
 
local form = createFormFromStream(stream)
 
local form = createFormFromStream(stream)
</pre>
+
</syntaxhighlight>
  
 
{{LuaSeeAlso}}
 
{{LuaSeeAlso}}
 +
 +
{{Creation}}

Latest revision as of 23:45, 26 June 2026

<> Lua API Reference

function createFormFromStream(stream) : CEForm

Creates a CEForm from a stream containing a form definition.

The stream must contain a valid CE/LCL form definition and be positioned at its beginning.

Function Parameters[edit]

Parameter Type Description
stream Stream Stream containing the form definition.

Returns[edit]

CEForm — The form created from the stream.

Examples[edit]

1 local stream = createMemoryStream()
2 stream.loadFromFile("C:\\MyTrainer\\layout.frm")
3 local form = createFormFromStream(stream)

Main Pages

Core Lua documentation entry points

Lua
Script Engine

Basic Visual Controls

Text / Input Controls

Value / Progress Controls

Graphics / Resources

Strings / Streams

Timers / Hotkeys

Scanning / Found Lists

Other Creation Helpers