Lua:createMemScan

From Cheat Engine
Jump to navigation Jump to search

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

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

Returns

MemScan — The newly created memory scanner.

Examples

local scan = createMemScan()
scan.VariableType = vtDword
scan.ScanValue = "100"
scan.firstScan()
scan.waitTillDone()

See Also

Main Pages