Solvedneed help finding black ops 3 window

Posts 1–5 of 5 · Page 1 of 1
need help finding black ops 3 window
im just screwing around and thought id make a little trainer for myself. im having issues finding the BO3 window, in world at war and modern warefare 2 the name of it was Call of Duty®. and in this its Call of Duty® -ship-username the username is different for each user. but no matter what i try to have it search for it cant find it and im not sure why.


Code:
hWindow = FindWindow(NULL, L"Call of Duty®");
hWindow = FindWindow(NULL, L"Call of Duty® -ship-gokitty199");
oops wrong area
You could always just use the process id instead of hWindow.
Quote Originally Posted by HexMurder View Post
You could always just use the process id instead of hWindow.
would you mind giving me an example, i havent touched c++ in a year unfortionatly lol, im only remembering what i have written before. just copied my world at war add points code and changed the address and name of window.
Code:
 HANDLE hProcess = 0; 
			HWND hWindow;
			DWORD address = 0x1476D346C;
			int value = 0;
			DWORD pid = 0;
			hWindow = FindWindow(NULL, L"Call of Duty® - ship - gokitty199");

			if (hWindow) {
			GetWindowThreadProcessId(hWindow, &pid);
			}
			hProcess = OpenProcess(PROCESS_VM_READ | PROCESS_VM_WRITE | PROCESS_VM_OPERATION | PROCESS_QUERY_INFORMATION, 0, pid);
			ReadProcessMemory(hProcess,(LPVOID)address,&value,sizeof(value),NULL);
			value += 15000;
			WriteProcessMemory(hProcess,(LPVOID)address,&value,sizeof(value),NULL);
			VirtualProtectEx(hProcess, (LPVOID)address, 256, PAGE_EXECUTE_READWRITE, NULL);
Quote Originally Posted by gogogokitty View Post
would you mind giving me an example, i havent touched c++ in a year unfortionatly lol, im only remembering what i have written before. just copied my world at war add points code and changed the address and name of window.
Code:
 HANDLE hProcess = 0; 
			HWND hWindow;
			DWORD address = 0x1476D346C;
			int value = 0;
			DWORD pid = 0;
			hWindow = FindWindow(NULL, L"Call of Duty® - ship - gokitty199");

			if (hWindow) {
			GetWindowThreadProcessId(hWindow, &pid);
			}
			hProcess = OpenProcess(PROCESS_VM_READ | PROCESS_VM_WRITE | PROCESS_VM_OPERATION | PROCESS_QUERY_INFORMATION, 0, pid);
			ReadProcessMemory(hProcess,(LPVOID)address,&value,sizeof(value),NULL);
			value += 15000;
			WriteProcessMemory(hProcess,(LPVOID)address,&value,sizeof(value),NULL);
			VirtualProtectEx(hProcess, (LPVOID)address, 256, PAGE_EXECUTE_READWRITE, NULL);

http://www.mpgh.net/forum/showthread.php?t=63802
Create a Toolhelp32Snapshot ( Specifying x64 processes only ), enumerate each of them and look for the actual process name, get the process ID and call OpenProcess()
Posts 1–5 of 5 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us