Lua:createFindDialog

From Cheat Engine
Revision as of 19:25, 23 June 2026 by Leunsel (talk | contribs) (Initial page creation.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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

local form = createForm()
local dialog = createFindDialog(form)
dialog.OnFind = function(sender)
  print("Find: " .. sender.FindText)
end
dialog.execute()

See Also

Main Pages