Lua:createOpenDialog

From Cheat Engine
Revision as of 23:52, 26 June 2026 by Leunsel (talk | contribs) (Added related function template.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

<> Lua API Reference

function createOpenDialog(owner) : OpenDialog

Creates an OpenDialog for selecting files.

Configure dialog properties before calling execute(). Read the selected value only when execute() returns true.

Function Parameters

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

Returns

OpenDialog — The created OpenDialog object.

Examples

1 local form = createForm()
2 local dialog = createOpenDialog(form)
3 if dialog.execute() then
4   print(dialog.FileName)
5 end

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