Difference between revisions of "Lua:autoAssemble"
Jump to navigation
Jump to search
m (Added missing break.) |
m (Syntax Highlighting.) |
||
| Line 34: | Line 34: | ||
===Example=== | ===Example=== | ||
| − | < | + | <syntaxhighlight lang="lua" line> |
-- Simple AutoAssembler script | -- Simple AutoAssembler script | ||
local disableTable | local disableTable | ||
| Line 45: | Line 45: | ||
print("Script assembled successfully") | print("Script assembled successfully") | ||
end | end | ||
| − | </ | + | </syntaxhighlight> |
{{LuaSeeAlso}} | {{LuaSeeAlso}} | ||
{{Assembly}} | {{Assembly}} | ||
Latest revision as of 19:26, 25 June 2026
Runs the Auto Assembler with the given text.
- If targetself is set, it will assemble into Cheat Engine itself.
- Returns true on success.
- As a secondary return, it provides a table you can use for disabling.
- If disableInfo is provided, the [Disable] section will be handled automatically.
Function Parameters[edit]
| Parameter | Type | Description |
|---|---|---|
| text | String | The Auto Assembler script text to run. |
| targetself | Boolean (optional) | If true, assembles into Cheat Engine itself. Default is false. |
| disableInfo | Table (optional) | If provided, will handle the [Disable] section. |
Returns[edit]
Boolean — true if the assembly succeeded.
Table — Optional secondary table for handling disable info.
Example[edit]
1 -- Simple AutoAssembler script
2 local disableTable
3 local success, disableTable = autoAssemble([[
4 alloc(newmem,1024)
5 // ...
6 ]], true)
7
8 if success then
9 print("Script assembled successfully")
10 end