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 


from cheat engine to c++ variables

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
miska
Newbie cheater
Reputation: 0

Joined: 05 Feb 2012
Posts: 11

PostPosted: Sun Feb 05, 2012 4:08 am    Post subject: from cheat engine to c++ variables Reply with quote

Hi everyone. i'm new and i need help. it's possible that my problem was on forum but i don't knot what i need to search.

I want to find something (for example: health) with cheat engine and then do something to have this in my c++ program in variable. finding isn't a problem but i don't know haw can i have this in my program in variable.

I'm from polad so please use simple language (:
the best would be if anyone can paste here one expample. it would be great.

thanks for help and sorry for bad english
Back to top
View user's profile Send private message
Corruptor
Advanced Cheater
Reputation: 3

Joined: 10 Aug 2011
Posts: 82

PostPosted: Sun Feb 05, 2012 2:29 pm    Post subject: Reply with quote

Ok, just to make sure i understand this correctly:

situation: using cheat engine, you found an adress containing e.g the health. you know what type it is (float, int, double etc) and you know the adress (or the pointer(s) pointing at it).
Now you want to write your own program in c++ which holds this health in a variable.

I wonder if i understood it correctly since this seems to be a question about c++. anyways, just in case that this is what you want:

you can not simply have the health as a variable in your program. What you can do is reading the health at any time, and write the result into a variable. This variable will not change itself when you health is changed in the game, though.

Also, you will need the winapi. If thats really what you want to do, reply to this and i will give further explainations.
Basiacly, you will have to #include <windows.h>, get debug rights using "OpenProcessToken" and "AdjustTokenPrivilegs" and hook into it using "OpenProcess" function. Once you did that, you can use the WriteProcessMemory and ReadProcessMemory functions at any time to read or write your health.
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