Posted: Wed Mar 07, 2012 1:17 pm Post subject: How to use checkbox to enable script?
Code:
function CECheckbox1Click(sender)
if checkbox_getState(checkbox) == 1 then
local memrec=memoryrecord_getID(memrec1)
local isActive=memoryrecord_isActive(memrec)
cheatcomponent_setActive(CETrainer_CECheckbox1, isActive)
if gBeepOnAction then
beep()
end
end
end
Once you get the checkbox you can use checkbox_ specific functions on it, like checkbox_onChange(cb, CheckboxStateChangefunction)
note that the checkbox of a "Cheat" component is linked to the Active property so watch for infinite loops
---
alternatively, instead of making use of the old generic ce 5.x CheatList object create your own gui instead with a checkbox that you place and control yourself _________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping
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