i found old posts (2015) with functions for read and write on the memory but they use always a memory position for read the value
some1 already made a function for search a value in the memory like cheat engine ?
i don't think is hard to do something like
Code: Select all
checkValue(mem, value) {
valuebyte = firstbyteof value
value = value.substring(firstbyte)
if (valuebyte == valueInMem(mem)) {
if (value.length > 0)
return checkvalue(mem+1,value)
else return true
else false;
}
searchValue(program, value) {
results[]
for (i=0, i<program.memorysize;i++) {
if (checkValue(program + i, value)) result.push(program+i)
return results
}
the main problem of this method is that u query every position of the memory and i don't think the dllcall used in the functions for read the memory is fast enought for check everything
u know if there is a lib or something already done ?
i wanna read some values from a game but i can't find the static address, and with ocr i have a 20% of wrong reads, but the search of the value is easy to do in cheat engine with 2 searchs