Lua:createFormFromStream

From Cheat Engine
Jump to navigation Jump to search

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

Parameter Type Description
stream Stream Stream containing the form definition.

Returns

CEForm — The form created from the stream.

Examples

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