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 Forum Index
PostGo back to topic
FreeER
Grandmaster Cheater Supreme
Reputation: 42
Joined: 09 Aug 2013
Posts: 1089

PostPosted: Mon Jan 01, 2018 9:42 pm    Post subject:

CEToggleBox13.Checked is the boolean that represents the checked/unchecked state (there's also State which is cbUnchecked=0, cbChecked=1, cbGrayed=2), it's based on the CheckBox (same functionality, different appearance) hence the name. In this case I'd personally skip the if statement and use

Code:
function CEToggleBox14Click(sender)
  local name = CEToggleBox13.Checked and 'hack1' or 'hack2'
  getAddressList().getMemoryRecordByDescription(name).Active = sender.Checked
end
Back to top
View user's profile Send private message
Post reviews:   Approve 1
Author Review
Gou
Review: Approve
Post reference:
ReviewPosted: Wed Jan 03, 2018 2:47 am


Back to top
View user's profile Send private message
Display:  
Cheat Engine Forum Index


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites