Difference between revisions of "Lua:createFoundList"

From Cheat Engine
Jump to navigation Jump to search
(Initial page creation.)
 
m (Syntax Highlighting.)
Line 21: Line 21:
  
 
===Examples===
 
===Examples===
<pre>
+
<syntaxhighlight lang="lua" line>
 
local scan = createMemScan()
 
local scan = createMemScan()
 
-- Configure and complete the scan first.
 
-- Configure and complete the scan first.
Line 27: Line 27:
 
found.initialize()
 
found.initialize()
 
print(found.Count)
 
print(found.Count)
</pre>
+
</syntaxhighlight>
  
 
{{LuaSeeAlso}}
 
{{LuaSeeAlso}}

Revision as of 19:34, 26 June 2026

<> Lua API Reference

function createFoundList(memscan) : FoundList

Creates a FoundList for a MemScan object.

Call initialize() after the scan has finished to open its result file for reading.

Function Parameters

Parameter Type Description
memscan MemScan Completed memory scan whose result file the FoundList will read.

Returns

FoundList — The created result-list reader.

Examples

1 local scan = createMemScan()
2 -- Configure and complete the scan first.
3 local found = createFoundList(scan)
4 found.initialize()
5 print(found.Count)

Main Pages

Core Lua documentation entry points

Lua
Script Engine