FreeER Grandmaster Cheater Supreme Reputation: 53 Joined: 09 Aug 2013 Posts: 1091
|
Posted: 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
|
|
|