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 


Create a simple timer through code injection.

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

Joined: 17 Feb 2021
Posts: 29

PostPosted: Tue Feb 23, 2021 11:32 pm    Post subject: Create a simple timer through code injection. Reply with quote

As the title says I want to create a simple timer. When it reaches 0 the code is activated.

I know i need "call GetTickCount" to activate the code, but the game crashed after I tried.

Code:
define(address,.....)
define(bytes, .....)

[ENABLE]

assert(address,bytes)
alloc(newmem,$1000,"gpgxl.dll"+6DB86)

label(code)
label(return)

newmem:

code:
  call GetTickCount
  cmp eax,#100                        // when it reaches zero it should proceed with the code and then freeze ["gpgxl.dll"+6D765] at 500. ↓↓↓
  mov word ptr ["gpgxl.dll"+6D765],#500
  jmp return

address:
  jmp newmem
  nop
return:

[DISABLE]

address:
  db bytes
dealloc(newmem)



The timer starts with 100 ms but when it reaches 0 the value is set to 500.
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