Lua:createMemScan

From Cheat Engine
Revision as of 23:55, 26 June 2026 by Leunsel (talk | contribs) (Added related function template.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

<> Lua API Reference

function createMemScan(progressbar OPTIONAL) : MemScan

Creates a MemScan object for an independent memory scan.

Configure the scan properties or call firstScan/nextScan on the returned object. Use waitTillDone() before reading results.

Function Parameters[edit]

Parameter Type Description
progressbar ProgressBar or nil Optional progress bar updated while scanning.

Returns[edit]

MemScan — The newly created memory scanner.

Examples[edit]

1 local scan = createMemScan()
2 scan.VariableType = vtDword
3 scan.ScanValue = "100"
4 scan.firstScan()
5 scan.waitTillDone()

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