Difference between revisions of "Lua:writeStringLocal"
Jump to navigation
Jump to search
m |
m (Added CodeBox Template.) |
||
| Line 1: | Line 1: | ||
[[Category:Lua]] | [[Category:Lua]] | ||
| − | '''function''' writeStringLocal(''Address'', ''String'', [''WideChar'']) ''':''' Boolean | + | {{CodeBox|'''function''' writeStringLocal(''Address'', ''String'', [''WideChar'']) ''':''' Boolean}} |
Writes a string to the specified address in Cheat Engine's own process memory (not the target process). | Writes a string to the specified address in Cheat Engine's own process memory (not the target process). | ||
Revision as of 23:09, 4 December 2025
Writes a string to the specified address in Cheat Engine's own process memory (not the target process). Set WideChar to true to write the string as widechar (UTF-16/Unicode). Returns true on success.
Function Parameters
| Parameter | Type | Description |
|---|---|---|
| Address | Integer or CEAddressString | The address in Cheat Engine's memory to write to. |
| String | String | The string to write. |
| WideChar | Boolean (optional) | Set to true to write as a widechar (UTF-16/Unicode) string. Default is false (ASCII/ANSI). |
Returns
Boolean — true if the write was successful, false otherwise.
Examples
-- Write an ASCII string to address 0x123456 in CE's memory
local success = writeStringLocal(0x123456, "Hello, Cheat Engine!")
print("Write successful:", success)
-- Write a widechar (Unicode) string to a CEAddressString
writeStringLocal("00400000+10", "Unicode Text", true)