Lua:autoAssemble
Jump to navigation
Jump to search
| <> Function function autoAssemble(text, [targetself, disableInfo]) : Boolean, Table |
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
| 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
Boolean — true if the assembly succeeded.
Table — Optional secondary table for handling disable info.
Example
-- Simple AutoAssembler script
local disableTable
local success, disableTable = autoAssemble([[
alloc(newmem,1024)
// ...
]], true)
if success then
print("Script assembled successfully")
end
See also
| Lua |
| Script Engine |
Related Functions
| autoAssemble |
| autoAssembleCheck |
| disassemble |
| splitDisassembledString |
| getInstructionSize |
| getPreviousOpcode |
| registerAssembler |
| unregisterAssembler |