Results 1 to 4 of 4
  1. #1
    Aidenbooy's Avatar
    Join Date
    Feb 2019
    Gender
    male
    Posts
    1
    Reputation
    10
    Thanks
    0

    Cool Terraria wood giver

    Code:
    #include <iostream>
    #include <Windows.h>
    
    using namespace std;
    
    int main() {
    	int newValue = 2000;
    	HWND hwnd = FindWindowA(NULL, "Terraria: So then I said 'Something about a pc update....'"); // Find window
    	if (hwnd == NULL) {
    		cout << "Cannot find window name" << endl;
    		Sleep(3000);
    		exit(-1);
    	}
    	else {
    		DWORD procID;
    		GetWindowThreadProcessId(hwnd, &procID);
    		HANDLE handle = OpenProcess(PROCESS_ALL_ACCESS, FALSE, procID);
    
    		if (procID == NULL){
    			cout << "Cannot find process ID" << endl;
    			Sleep(3000);
    			exit(-1);
    		}
    		else {
    			WriteProcessMemory(handle, (LPVOID)0x40B01D0C, &newValue, sizeof(newValue), 0);
    		}
    	}
    	return 0;
    }
    I need help with getting a static address, and with the name change on the window.. I am new to game hackign and is wondering how to do it..
    My ******* Aiden#6538

    Thank you!

  2. #2
    HiImKyle's Avatar
    Join Date
    Oct 2015
    Gender
    male
    Location
    England
    Posts
    233
    Reputation
    10
    Thanks
    206
    I suck with C++, but can you cycle through the current windows title's and just get the one that begins with "Terraria"?

  3. #3
    HiptonHD's Avatar
    Join Date
    Dec 2013
    Gender
    male
    Posts
    17
    Reputation
    10
    Thanks
    0
    I don't code.... well... anything really, but I can tell you you're most likely not going to get the terraria window a lot of the time, because the "So then I said 'Something about a pc update...." will change, it's a random message almost every time iirc

  4. #4
    HiImKyle's Avatar
    Join Date
    Oct 2015
    Gender
    male
    Location
    England
    Posts
    233
    Reputation
    10
    Thanks
    206
    Quote Originally Posted by HiptonHD View Post
    I don't code.... well... anything really, but I can tell you you're most likely not going to get the terraria window a lot of the time, because the "So then I said 'Something about a pc update...." will change, it's a random message almost every time iirc
    Hence why i said just loop through all and find the one that starts with "Terraria: "

Similar Threads

  1. The Tiger Woods conflict....
    By Dested in forum General
    Replies: 24
    Last Post: 12-14-2009, 10:35 PM
  2. Tiger woods mistress voicemail
    By Obama in forum General
    Replies: 11
    Last Post: 12-05-2009, 04:36 AM
  3. Brush wood video
    By kimodragon in forum Combat Arms Hacks & Cheats
    Replies: 1
    Last Post: 09-10-2008, 08:53 PM
  4. any good auto wood cutters out there?
    By Thetoiletguy911 in forum General Hacking
    Replies: 4
    Last Post: 06-09-2008, 07:57 PM
  5. Warios Woods
    By Kyojiro in forum General
    Replies: 16
    Last Post: 05-13-2006, 02:37 PM