Difference between revisions of "Lua:writeStringLocal"

From Cheat Engine
Jump to navigation Jump to search
Line 1: Line 1:
'''function''' writeStringLocal(''Address'', ''Text'')
+
'''function''' writeStringLocal(''Address'', ''Text'', ''WideChar'' OPTIONAL)
  
Writes the given text to the given address, in Cheat Engine's memory. This does not write a 0-terminator at the end. You need to use [[writeBytesLocal]] yourself if you need one.
+
Writes the given text to the given address, in Cheat Engine's memory. This does not write a 0-terminator at the end. You need to use [[writeBytesLocal]] yourself if you need one. Set WideChar to true if it is encoded using a widechar formatting.
  
 
Note: The value written will be in the Cheat Engine process instead of the targeted process.
 
Note: The value written will be in the Cheat Engine process instead of the targeted process.
Line 18: Line 18:
 
|String
 
|String
 
|The text to write to Cheat Engine's memory
 
|The text to write to Cheat Engine's memory
 +
|-
 +
|WideChar
 +
|boolean
 +
|Set to true if it is encoded using a widechar formatting
 
|}
 
|}
  

Revision as of 07:09, 9 March 2017

function writeStringLocal(Address, Text, WideChar OPTIONAL)

Writes the given text to the given address, in Cheat Engine's memory. This does not write a 0-terminator at the end. You need to use writeBytesLocal yourself if you need one. Set WideChar to true if it is encoded using a widechar formatting.

Note: The value written will be in the Cheat Engine process instead of the targeted process.

Function Parameters

Parameter Type Description
Address CEAddressString or Integer The address in Cheat Engine's memory to write to
Text String The text to write to Cheat Engine's memory
WideChar boolean Set to true if it is encoded using a widechar formatting


See also

Related Functions