Lua:createFindDialog

From Cheat Engine
Jump to navigation Jump to search

<> Lua API Reference

function createFindDialog(owner) : FindDialog

Creates a FindDialog for text searches.

Set OnFind to handle a search request. The user-entered search string is available through FindText.

Function Parameters

Parameter Type Description
owner Component The component that owns the dialog.

Returns

FindDialog — The created FindDialog object.

Examples

1 local form = createForm()
2 local dialog = createFindDialog(form)
3 dialog.OnFind = function(sender)
4   print("Find: " .. sender.FindText)
5 end
6 dialog.execute()

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