Code: Select all
answer1 := 1
answer2 := 2
answer3 := 3
values := []
Loop
{
Loop, 20
values[a_index] := Readmemory(Addresses[a_index])
Loop, 3
{
temp:=0
Loop, 20
{
if (values[a_index]<>answer%a_index%)
temp++
}
if temp=20
gosub react
}
sleep, 10
}
ReadMemory(MADDRESS)
{
global
local MVALUE
VarSetCapacity(MVALUE,4,0)
DllCall("ReadProcessMemory", "Uint", ProcessHandle, "Uint", MADDRESS, "str" , MVALUE, "Uint", 4, "Uint*", 0)
return *(&MVALUE+3)<<24 | *(&MVALUE+2)<<16 | *(&MVALUE+1)<<8 | *(&MVALUE)
}
Thanks in advance!
@edit: fixed some typos.