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 


freeze hotkey after specified no of uses

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

Joined: 01 Oct 2017
Posts: 6

PostPosted: Sun Oct 01, 2017 2:29 pm    Post subject: freeze hotkey after specified no of uses Reply with quote

lets say I need a key frame to be presed 15 times but i need to press it constantly with other hot keys.

Is there any script that can freeze my key frame after a specified number of presses?

let's say hotkey #1 needs 10 presses #2 7 and #3 100.

Can i freeze each one when it reaches the specified amount?
Back to top
View user's profile Send private message
OldCheatEngineUser
Whateven rank
Reputation: 4

Joined: 01 Feb 2016
Posts: 584

PostPosted: Mon Oct 02, 2017 12:31 am    Post subject: Reply with quote

i know nothing about lua, but i can do something in assembly.
Code:

header is the new allocated memory
terminate is where the jump to the original instructions
key one count is a counter for your key to see how many times it pressed.

header:
cmp byte ptr [KeyOneCount],0A
jz terminate
...
do some stuff
...
inc [KeyOneCount]
jmp terminate

KeyOneCount:
db 00

_________________
About Me;
I Use CE Since Version 1.X, And Still Learning How To Use It Well!
patched cheat engine tutorials
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 Lua Scripting 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