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 


Accessing values from another application

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
ferrets
How do I cheat?
Reputation: 0

Joined: 06 Jun 2016
Posts: 2

PostPosted: Mon Jun 06, 2016 6:44 am    Post subject: Accessing values from another application Reply with quote

Hey everyone,

I am very new to Cheat Engine so I apologise if this is a super simple question.

I am using Cheat Engine to get values from a game (Dark Souls 3 specifically). I would like to access these values from a C++ application I am making. Is there a way I can access these values from Cheat Engine directly or have them printed from Cheat Engine to another program or even just a txt file to be constantly changed and read?

Thank you for your time!
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4706

PostPosted: Mon Jun 06, 2016 8:44 am    Post subject: Reply with quote

IMO you'd be better off replicating whatever CE does in your C++ application. It shouldn't be terribly hard if it's just a few AA scripts (and if you know what they do).

Regardless, here's some links I found in a few seconds through Google:
https://en.wikipedia.org/wiki/Inter-process_communication
https://msdn.microsoft.com/en-us/library/windows/desktop/aa366551%28v=vs.85%29.aspx

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
ferrets
How do I cheat?
Reputation: 0

Joined: 06 Jun 2016
Posts: 2

PostPosted: Mon Jun 06, 2016 6:50 pm    Post subject: Reply with quote

[quote="ParkourPenguin"]IMO you'd be better off replicating whatever CE does in your C++ application. It shouldn't be terribly hard if it's just a few AA scripts (and if you know what they do).[/quote]

Fair, I had a look into the links you gave me and had a think about how I'd do it and you are definitely right. I shall have a look into the Cheat Engine source code to find how it can access the memory of an open application (I guess it runs as a debugger of some sort).

Any other advice on the subject would be thoroughly appreciated though!

Thank you for your response.
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4706

PostPosted: Mon Jun 06, 2016 6:58 pm    Post subject: Reply with quote

ReadProcessMemory / WriteProcessMemory
You may need to use VirtualProtectEx as well.
Google anything to find tutorials and examples.

_________________
I don't know where I'm going, but I'll figure it out when I get there.
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 programming 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