ButtonResult

From Cheat Engine
Revision as of 23:46, 10 July 2025 by Leunsel (talk | contribs) (Added a Description.)
Jump to navigation Jump to search

'ButtonResult is an enumeration in Cheat Engine Lua that represents the result of a dialog box, indicating which button the user pressed. Each constant corresponds to a specific button action (such as OK, Cancel, Yes, No, etc.) and is returned by functions like messageDialog to let your script know how the user responded.

Defined in: defines.lua

Button Results

Constant Value Description
mrNone 0 None
mrOK 1 OK pressed
mrCancel 2 Cancel pressed
mrAbort 3 Abort pressed
mrRetry 4 Retry pressed
mrIgnore 5 Ignore pressed
mrYes 6 Yes pressed
mrNo 7 No pressed
mrAll 8 All pressed
mrNoToAll 9 No to All pressed
mrYesToAll 10 Yes to All pressed
mrLast 10 Last result (same as mrYesToAll)

See also