Difference between revisions of "Lua:writeStringLocal"

From Cheat Engine
Jump to navigation Jump to search
(Created page with ''''function''' writeStringLocal(''Address'', ''Text'') Writes the given text to the given address, in Cheat Engine's memory. This does not write a 0-terminator at the end. You n…')
 
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
'''function''' writeStringLocal(''Address'', ''Text'')
+
[[Category:Lua]]
 +
'''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.
  
 
===Function Parameters===
 
===Function Parameters===
Line 16: Line 19:
 
|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
 
|}
 
|}
  
  
== See also ==
+
{{LuaSeeAlso}}
* [[Lua]]
 
* [[Help_File:Script engine|Script engine]]
 
  
 
=== Related Functions ===
 
=== Related Functions ===
* [[readBytes]]
+
* [[ansiToUtf8]]
* [[readInteger]]
+
* [[utf8ToAnsi]]
* [[readQword]]
+
* [[translate]]
* [[readPointer]]
+
{{ReadWriteMemory}}
* [[readFloat]]
 
* [[readDouble]]
 
* [[readString]]
 
* [[writeBytes]]
 
* [[writeInteger]]
 
* [[writeQword]]
 
* [[writeFloat]]
 
* [[writeDouble]]
 
* [[writeString]]
 
* [[readBytesLocal]]
 
* [[readIntegerLocal]]
 
* [[readQwordLocal]]
 
* [[readPointerLocal]]
 
* [[readFloatLocal]]
 
* [[readDoubleLocal]]
 
* [[readStringLocal]]
 
* [[writeBytesLocal]]
 
* [[writeIntegerLocal]]
 
* [[writeQwordLocal]]
 
* [[writeFloatLocal]]
 
* [[writeDoubleLocal]]
 
* [[wordToByteTable]]
 
* [[dwordToByteTable]]
 
* [[qwordToByteTable]]
 
* [[floatToByteTable]]
 
* [[doubleToByteTable]]
 
* [[stringToByteTable]]
 
* [[wideStringToByteTable]]
 
* [[byteTableToWord]]
 
* [[byteTableToDword]]
 
* [[byteTableToQword]]
 
* [[byteTableToFloat]]
 
* [[byteTableToDouble]]
 
* [[byteTableToString]]
 
* [[byteTableToWideString]]
 

Latest revision as of 00:05, 25 January 2018

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[edit]

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[edit]

Related Functions[edit]