Difference between revisions of "Lua:createFoundList"

From Cheat Engine
Jump to navigation Jump to search
(Initial page creation.)
 
m (Added related function template.)
 
(One intermediate revision by the same user not shown)
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}}
 +
 +
{{Creation}}

Latest revision as of 23:56, 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[edit]

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

Returns[edit]

FoundList — The created result-list reader.

Examples[edit]

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

Basic Visual Controls

Text / Input Controls

Value / Progress Controls

Graphics / Resources

Strings / Streams

Timers / Hotkeys

Scanning / Found Lists

Other Creation Helpers