Quote:
Originally Posted by evanxxxm
ephe@
the example only examine 100bytes
think of the situation as 1000000+ addresses
and if u want to split the string, it will becomes lots and lots of arrays
and if so, back to the original problem, it takes lots and lots of time to loop read through all those 250000+ addresses
actually if even thats fast, for example i got the value i want "11 22 33 44", how to locate it back to what address its from?
if autoIT can read color minimized/background, i guess its time for me to convert my AHK
or its the time for me to step back
|
You set a variable := the first address you read the 1000000+ bytes from (instead of 100, all the better), then you search inside the array, when you find the place inside the array where the value is present, you sum the first address in memory to the place of the value.
The point here is that, yes, you STILL have to do a massive search, but even if I know nothing about C++/C#/whatever (which is supposedly the source language AHK is written in) and I am a lame AHK scripter as well, I think that, for AHK, is MUCH (much, much, much...) faster to search inside its own arrays than to invoke DllCall to read 4bytes at a time from another process' memory.