Quote:
Originally Posted by evanxxxm
MushyPeas@
do u have any example codes of writing memory values?
|
Sry I missed your post, I'll try n make u an example if u still need it but it should be pretty similar to reading.
edit:
For writing a numeric value:
DllCall("WriteProcessMemory", "uint",
ProcessHandle, "uint",
memoryAddress, "uint",
uintToWrite, "uint",
1, "uint", bytesWritten)
ProcessHandle = the process handle
memoryAddress = the memory address you want to write to
uintToWrite = the unsigned int you want to write (numeric)
1 = the length of the uint to write
For writing a string (text):
DllCall("WriteProcessMemory", "uint",
ProcessHandle, "uint",
memoryAddress, "uint",
stringToWrite, "uint",
StrLen(stringToWrite), "str", bytesWritten)
ProcessHandle = the process handle
memoryAddress = the memory address you want to write to
stringToWrite = the string you want to write
StrLen(stringToWrite) = the length of the string to write
If you can't get this to work, please provide me with the address and the value you want to write and I will experiment with it.