in the cheat engine it always appears 3 but when I put it like this, the 3 values of addres don't appear, I need it to do the aob search for all the results. more in the ahk scan it only shows one
would there be any way to differentiate the value of the prize loop ?
Code: Select all
#include <classMemory>
if (_ClassMemory.__Class != "_ClassMemory")
{
msgbox class memory not correctly installed.
ExitApp
}
WinGet, PID, PID, Chara1
mem := new _ClassMemory("ahk_exe ldvboxheadless.exe", "", hProcessCopy)
if !IsObject(mem)
{
if (hProcess = "")
msgbox OpenProcess failed. If the target process has admin rights, then the script also needs to be ran as admin. Consult A_LastError for more information.
else msgbox The program isn't running (not found) or you passed an incorrect program identifier parameter.
ExitApp
}
loop,11
{
SetFormat, IntegerFast, hex
; I just put the pattern in an array so that it's a bit neater with 2 function calls
aPattern%A_Index% := [0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, "?", "?", "?", "?", 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0xBF, 0x00, 0x00, 0x00, 0x00]
address%A_Index% := mem.processPatternScan(,, aPattern%A_Index%*)
address2%A_Index% := address%A_Index% - 0x180
msgbox, % address2%A_Index%
}
return
@BoBo