me program:
Quote:
#include <windows.h>
#include <iostream>
int main()
{
SetConsoleTitle ("BOT");
HWND hWnd;
DWORD processId;
HANDLE hProcess;
hWnd = FindWindow("Solitaire", 0);
if (!hWnd)
{
std::cout << "Programa Isjungta" << std::endl;
} else {
GetWindowThreadProcessId(hWnd, &processId);
hProcess = OpenProcess(PROCESS_ALL_ACCESS, false, processId);
int taskai;
ReadProcessMemory(hProcess, (LPVOID)0x000AA768, &taskai, 4, 0);
std::cout << "Score: " << taskai << std::endl;
if (taskai == 0)
{
std::cout << "Score: " << taskai << std::endl;
}
}
system("pause");
return 0;
}
|
this show
score:
and if score 0 show again score

now i nee re-load offset , because i need recheck if(taskai == 0)
maybe can make simple example how refresh?