Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Simple trainer skeleton

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
Splizes
Grandmaster Cheater Supreme
Reputation: 0

Joined: 21 Jun 2006
Posts: 1944
Location: Florida

PostPosted: Fri Sep 14, 2007 1:37 pm    Post subject: Simple trainer skeleton Reply with quote

This things that can be changed to make a trainer are in red Very Happy
This is for MVC ++ 6.0 Very Happy
You can change all the printfs and such Very Happy

Quote:

#include "stdafx.h"
#include <windows.h>
#include <iostream>
#define VK_ALT 0x12 // Alt Key
#define VK_0 0x30 // 0 key
unsigned long PID;

HANDLE hProcess;
HWND hname;

int main(int argc, char* argv[])
{
SetConsoleTitle("Simple trainer");
printf("This is a very simple trainer skeleton by Snowfox. This is an example of Peggle Deluxe 1.0\n\n");
while(!hname)
{
hname = FindWindow(NULL, "Peggle Deluxe 1.0");
CreateRemoteThread(hname, NULL, 0, 0, 0, NULL, NULL);
GetWindowThreadProcessId(hname, &PID);
hProcess = OpenProcess(PROCESS_ALL_ACCESS, TRUE, PID);
Sleep(200);
}
if(hname)
{
printf("Peggle has been found.\n");
while(1)
{
if(GetAsyncKeyState(VK_ALT))
{
if(GetAsyncKeyState(VK_0))
{
BYTE bs[]={0x7f, 0x96, 0x98};
DWORD Newdatasize = sizeof(bs);
WriteProcessMemory(hProcess, (LPVOID)0x00E3CABC, &bs, Newdatasize, 0);
printf("Yummy, 9999999 score has become avalible.");
}
}
}

}
}
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites