I have no idea how to make "_MemoryWrite() " work.. i've spent nearly 4 hours flipping on it upside down and then sideways but it just doesnt work =.= , you can see how desperate i become i even tried using the reading function x_X ..fml, pls help
Code:
SetPrivilege("SetDebugPrivilege", 1)
#include <NomadMemory.au3>
#include <memmodulebaddr.au3>
Global $PID
Global $sModule = "MemoryMan.dll"
Global $StaticOffset
Global $openmem
$PID = ProcessExists("Tutorial-i386.exe")
;$openmem = _MemoryOpen($PID)
Global $Offset1[3]
$Offset1[0] = 0 ; Is ALWAYS 0.
$Offset1[1] = Dec("49c") ; 2nd pointr
$Offset1[2] = Dec("4") ; 1st pointr
;Step 2
$StaticOffset = Dec("6903C0")
$baseADDR = _MemoryGetBaseAddress($PID)
$finalADDR = "0x" & Hex($baseADDR + $StaticOffset)
$r = _MemoryRead($finaladdr,$openmem)
$r = _MemoryRead($r + $Offset1[1],$openmem)
$r = _MemoryRead($r + $Offset1[2],$openmem)
$Write = _MemoryWrite($r, $openmem, 2000)