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 


How can I run a function after I got the adress of it?

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

Joined: 22 Jun 2012
Posts: 1

PostPosted: Fri Jun 22, 2012 4:32 pm    Post subject: How can I run a function after I got the adress of it? Reply with quote

Hey, I am new to CH and programming itself, and I wonder, how I can run a function after I got the adress of it. Using CH, I found the values I was looking for, and the address of the function that accesses/writes to it. Now I want to run somehow that function. I tried in c++ but I didn't succeed. Thanks in advance.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25832
Location: The netherlands

PostPosted: Fri Jun 22, 2012 4:44 pm    Post subject: Reply with quote

Do a code injection in a often called routine by the same thread.

When signaled (like a certain byte set to 1) it should call that function using the proper addresses and regisster values. (ECX, given parameters, etc...)

The register values (class pointer for example) will be different for each object that function affects if it's shared code, so you'll have to do some more hooking to find out what proper values are

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Fresco
Grandmaster Cheater
Reputation: 4

Joined: 07 Nov 2010
Posts: 600

PostPosted: Fri Jun 22, 2012 5:44 pm    Post subject: Reply with quote

you need the whole function, not just the code that affects a certain address.
like Dark Byte said, auto assemble and call function, not jump to code that affects address.
depending on some other addresses the function may return to the point from where it was called without even executing your code.
it's recommended that you execute the function by playing the game till happens that the code itself requires the execution of your code not by calling the function because again, there may be some factors that prevent the code from being executed.

_________________
... Fresco
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