Difference between revisions of "ButtonResult"
Jump to navigation
Jump to search
m |
|||
| (3 intermediate revisions 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. | |
| − | + | Defined in: '''defines.lua''' | |
| − | + | ||
| − | + | ===Button Results=== | |
| − | + | {|width="85%" cellpadding="5" cellspacing="0" border="0" | |
| − | + | !align="left"|Constant | |
| − | + | !align="left"|Value | |
| − | + | !align="left"|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 == | == See also == | ||
| − | * [[ | + | * [[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) |