Difference between revisions of "Lua:createMemScan"

From Cheat Engine
Jump to navigation Jump to search
(Initial page creation.)
 
m (Added related function template.)
 
Line 21: Line 21:
  
 
===Examples===
 
===Examples===
<pre>
+
<syntaxhighlight lang="lua" line>
 
local scan = createMemScan()
 
local scan = createMemScan()
 
scan.VariableType = vtDword
 
scan.VariableType = vtDword
Line 27: Line 27:
 
scan.firstScan()
 
scan.firstScan()
 
scan.waitTillDone()
 
scan.waitTillDone()
</pre>
+
</syntaxhighlight>
  
 
{{LuaSeeAlso}}
 
{{LuaSeeAlso}}
 +
 +
{{Creation}}

Latest revision as of 23:55, 26 June 2026

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