Difference between revisions of "ButtonResult"

From Cheat Engine
Jump to navigation Jump to search
m (Added a Description.)
m
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
[[Category:Lua]]
 
[[Category:Lua]]
'''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.
+
''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'''
 
Defined in: '''defines.lua'''
Line 60: Line 60:
  
 
== See also ==
 
== See also ==
* [[ButtonResult]]
+
* [[ButtonType]]
 
* [[messageDialog]]
 
* [[messageDialog]]
 
* [[form_showModal]]
 
* [[form_showModal]]
 
* [[Lua]]
 
* [[Lua]]

Latest revision as of 18:34, 11 July 2025

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[edit]

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[edit]