Application looks like CMD : Every C++ Normal App seems like CMD....
Originally Posted by TheExGamer
Detect if game is running :
Sorry if the above code looks bad its because I wrote directly here on MPGH..
using namespace std;
LPCWSTR WindowName = L"Modern Warfare 2";
HWND hwnd = FindWindow(0 , WindowName);
if (hwnd == 0)
cout << "Game is not opened!";
cout << "Game is opened!";
Will change the ?player name?
Just make a function that writes to the address of the "nametag" <- whatever that is example ...
If you want add a main(); func to it so it doesnt close ....
HANDLE hProcess = OpenProcess(PROCESS_ALL_ACCESS, FALSE, process_ID);
DWORD newdatasize = sizeof(nametag);
//here il turn it to a if function to ignore errors...
if(WriteProcessMemory(hProcess , (LPVOID)OFFSETHERE , &nametag , newdatasize , NULL))
cout << "Congrats!" << endl;
cout << "Oops" << endl;
That should do it , unless that "nametag" requires any special math...