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 


Cheat Engine Trainer Buttons

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

Joined: 07 Feb 2018
Posts: 1
Location: United Kingdom

PostPosted: Wed Feb 07, 2018 3:48 pm    Post subject: Cheat Engine Trainer Buttons Reply with quote

Is there a way to make the value of an adress freeze on button click in the trainer creator ? Shocked
_________________
Dstiva
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
FreeER
Grandmaster Cheater Supreme
Reputation: 53

Joined: 09 Aug 2013
Posts: 1091

PostPosted: Wed Feb 07, 2018 4:34 pm    Post subject: Reply with quote

add the address to the address list, create an onclick handler for the button (form designer/editor, object inspector, select button, events, OnClick ... button). Inside the lua function that's created add

Code:
local mr = getAddressList().getMemoryRecordByDescription('name/description of the address in the address list')
mr.Active = not mr.active -- toggle freeze
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