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 


Alternatives to injecting in commonly called code?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
booingthetroll
Expert Cheater
Reputation: 0

Joined: 30 Aug 2011
Posts: 114
Location: ::1

PostPosted: Sat Apr 21, 2012 5:16 pm    Post subject: Alternatives to injecting in commonly called code? Reply with quote

I'm writing a trainer for Minesweeper. Everything is flawless except for one thing - the autoreveal button. Right now, it relies on the timer; it injects into the address where the mov is that writes the current time to the screen.
Code:

Trainer.Functions.RevealMines = function()
   autoAssemble([[alloc(newmem,2048) //2kb should be enough
label(returnhere)
label(originalcode)
label(exit)
newmem:
push 0A
call 01002F80
originalcode:
cmp [0100579C],000003E7
exit:
jmp returnhere
"winmine.exe"+2FE9:
jmp newmem
nop
nop
nop
nop
nop
returnhere:
]])

This means that the user has to click somewhere and wait two seconds before the mines autoreveal. This could mean the games restart, which can be irritating. Are there any alternatives to injecting into commonly called code?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine 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