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 


checkbox/button to enable generated trainer

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

Joined: 17 Sep 2007
Posts: 167

PostPosted: Sat Nov 14, 2020 11:26 pm    Post subject: checkbox/button to enable generated trainer Reply with quote

checkbox/button to enable generated trainer

trying to use the checkbox or button to enable auto generated trainer?

Generated script:
Code:
function onPostHotkey0(Hotkey)
--Executed after the "toggle*" cheat got executed
local memrec=Hotkey.Owner
local isActive=memrec.Active --get the state after the hotkey got triggered
    CETrainer.CHEAT0.setActive(isActive) --gui update, nothing else
    if gPlaySoundOnAction then
      if isActive then
       playSound(gActivateSound)
    else
        playSound(gDeactivateSound)
      end
    end
  end

memrec45_hotkey0.onPostHotkey=onPostHotkey0


usage: NOTE: the memrec number

Code:
function CETrainer_CECheckbox1Click(sender)
memrec45_hotkey0.doHotkey()
end

function CETrainer_CEButton1Click(sender)
memrec45_hotkey0.doHotkey()
end
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 Tutorials 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