Lua:createFormFromStream

From Cheat Engine
Revision as of 18:56, 23 June 2026 by Leunsel (talk | contribs) (Initial page creation.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

<> 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]

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

See Also[edit]

Main Pages