https://ibb.co/pxVwMsC
CODE:
external(INT, "wsprintf", "wsprintfA", "User32.dll" );
win w=window ("GemsofWar", "UnityWndClass", -1);
int prc=openprocess(w);
char a[1024];
int adr[10000];
char poisk[4];
codhex(1673, #poisk[0]); // искомое число
int count=findmemory (sizearray(adr), #poisk[0], 4, #adr[0], 0, prc);
//messagebox(count);
if(count)
{
if(fopen(tempfolder()+"address.txt", "w"))
{
for(int i=0; i<count; i++)
{
wsprintf(address(#a[0]), "%x", adr[i]);
fwrite(format(#a[0])); fwrite(ENDL);
}
fclose();
start(tempfolder()+"address.txt");
}
}
win w=window ("GemsofWar", "UnityWndClass", -1);
int prc=openprocess(w);
char a[1024];
int adr[10000];
char poisk[4];
codhex(1673, #poisk[0]); // искомое число
int count=findmemory (sizearray(adr), #poisk[0], 4, #adr[0], 0, prc);
//messagebox(count);
if(count)
{
if(fopen(tempfolder()+"address.txt", "w"))
{
for(int i=0; i<count; i++)
{
wsprintf(address(#a[0]), "%x", adr[i]);
fwrite(format(#a[0])); fwrite(ENDL);
}
fclose();
start(tempfolder()+"address.txt");
}
}
При этом readmemory читает любые адреса без проблем.