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 


Trigger an event in trainer? Push not Poll

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

Joined: 17 Jul 2014
Posts: 1
Location: United States

PostPosted: Sun Jul 20, 2014 8:08 am    Post subject: Trigger an event in trainer? Push not Poll Reply with quote

Hello all,

I was wondering what is the best way to trigger an event in my c# trainer when a specific instruction is executed on my target process?

As of now I am injecting code in my target process that writes a specific register to a specified address in memory. My trainer then reads that specific address in memory at a very fast rate, and when the value matches a condition, I fire an event in my trainer.

The above would be a "polling" approach. I want more of a "push" approach. When my target process reaches my injected code, I want it to fire an event in my trainer, and then proceed. Kind of like a debugging breakpoint, but I don't want the process to pause. Maybe I just answered my own question... Can I programmatically set a breakpoint on the target process, which fires some even in my trainer, then remove the breakpoint and continue the with my c# trainer? But without pausing?

I'm kinda new at this. What options do I have other than polling memory?

Thanks for your wisdom.
Back to top
View user's profile Send private message
661089799107
Expert Cheater
Reputation: 3

Joined: 25 Jan 2009
Posts: 186

PostPosted: Sun Jul 20, 2014 3:50 pm    Post subject: Reply with quote

A breakpoint would be the way to go. Since you aren't using DLL injection.

The thread that is executing the instruction will still stop, but since it won't be waiting for user input this will happen very fast, and you won't notice it.

Debugging Functions:
http://msdn.microsoft.com/en-us/library/windows/desktop/ms679303(v=vs.85).aspx
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