Lua:createMemScan

From Cheat Engine
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