This site is no longer active, all members have migrated to devotedcheating.com . Thankyou



 
Actionhacks.netHomeFAQRegisterLog in

Share | 
 

 Creating a Basic trainer for .exe files

Go down 
AuthorMessage
Tate
Admin
Admin
avatar

Posts : 208
Reputation : 17
Join date : 2009-09-19
Age : 22

PostSubject: Creating a Basic trainer for .exe files   Sat Nov 28, 2009 6:48 am

Things youll need:
Cheat Engine
Dev C++ or Code::Blocks (idk about MSC++, I never liked it)


Open up cheat engine and open the tutorial.

Find the addie for health (should be easy, it tells you how on the tutorial)

Your addie SHOULD look something like this:
Code:
00A63FC4

Well, that's not a pointer.

Just add 0x to it, to make it cpp usable.:
Code:
0x00A63FC4

Save this to use for later


Ok. Include windows.h and iostream, use namespace std, and define own as "Success":

Code:
#include <windows.h>
#include <iostream>
using namespace std;
#define own "Success"

Read my comments:
Code:
int main()
{
HWND cheat = FindWindow(0, "Cheat Engine Tutorial"); // determines 'cheat' as the desired window to modify
if(cheat == 0)
{
Beep(1000,1000);
cout << "Failed" << endl; // if you failed, this shows up
}
else
{
DWORD ID;
GetWindowThreadProcessId(cheat, &ID);
HANDLE hProcess = OpenProcess(PROCESS_ALL_ACCESS, FALSE, ID);
if(!hProcess)
{
Beep(1000,1000);
}
else
{
 int v1 = 600;
 DWORD new_v1 = sizeof(v1);
 if(WriteProcessMemory(hProcess, (LPVOID)0x00A63FC4, &v1, new_v1, NULL)) //adds 600 health to your c urrent health
 {
 MessageBox(0, own, own, MB_OK);
 }
 else{
      Beep(1000,1000);
      }
      }CloseHandle(hProcess);
      }system("PAUSE");
      return 0;
}



Full source:
Code:
#include <windows.h>
#include <iostream>
using namespace std;
#define own "Success"

int main()
{
HWND cheat = FindWindow(0, "Cheat Engine Tutorial"); // determines 'cheat' as the desired window to modify
if(cheat == 0)
{
Beep(1000,1000);
cout << "Failed" << endl; // if you failed, this shows up
}
else
{
DWORD ID;
GetWindowThreadProcessId(cheat, &ID);
HANDLE hProcess = OpenProcess(PROCESS_ALL_ACCESS, FALSE, ID);
if(!hProcess)
{
Beep(1000,1000);
}
else
{
 int v1 = 600;
 DWORD new_v1 = sizeof(v1);
 if(WriteProcessMemory(hProcess, (LPVOID)0x00A63FC4, &v1, new_v1, NULL)) //adds 600 health to your c urrent health
 {
 MessageBox(0, own, own, MB_OK);
 }
 else{
      Beep(1000,1000);
      }
      }CloseHandle(hProcess);
      }system("PAUSE");
      return 0;
}

Basicly that's it.

Just post if you have any questions.

_________________
"Never pick a fight with an idiot. They'll simply bring you down to their level, then win by experience."
___________________________________
Back to top Go down
 
Creating a Basic trainer for .exe files
Back to top 
Page 1 of 1
 Similar topics
-
» Advice for creating a toy room
» Ten Basic Checkmates to Know
» Visual Basic Chess
» Chess Position Trainer 4 - Beta 1.5 is available
» NEW: The English Patch for Hollywood Monsters (Pendulo Studios,1997).

Permissions in this forum:You cannot reply to topics in this forum
 :: Public Section: Coding :: C++ :: Tutorials-
Jump to: