Code: Select all
duck: = ReadMemory (offset_1 + offset_2 + (i * 0x10) & 0xFFF, PID, ProcessHandle)
Code: Select all
& 0xFFF
Code: Select all
ProcessHandle: = DllCall ("OpenProcess", "int", 2035711, "char", 0, "UInt", PID, "UInt")
Code: Select all
ReadMemory (MADDRESS, PID = 0, ProcessHandle = -1)
{
VarSetCapacity (MVALUE, 4.0)
DllCall ("ReadProcessMemory", "UInt", ProcessHandle, "UInt", MADDRESS, "Str", MVALUE, "UInt", 4, "UInt *", 0)
Loop 4
result + = * (& MVALUE + A_Index-1) << 8 * (A_Index-1)
SetFormat, Integer, D
return, result
}