Lua:createSaveDialog

From Cheat Engine
Revision as of 19:26, 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

<> Lua API Reference

function createSaveDialog(owner) : SaveDialog

Creates a SaveDialog for choosing an output file.

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

SaveDialog — The created SaveDialog object.

Examples

local form = createForm()
local dialog = createSaveDialog(form)
if dialog.execute() then
  print(dialog.FileName)
end

Main Pages

Core Lua documentation entry points

Lua
Script Engine