the rose Newbie cheater Reputation: 0
Joined: 28 Mar 2012 Posts: 19
|
Posted: Fri Jan 11, 2013 6:45 am Post subject: add checbox for hotkey in lua script... |
|
|
'm not getting...add checbox for hotkey in lua script...
in hotkey is function perfect, but can not run at checkbox.
addresslist=getAddressList()
memrec0=addresslist_getMemoryRecordByID(addresslist,0)
memrec0_hotkey0=memoryrecord_getHotkeyByID(memrec0,0)
function onPostHotkey0(Hotkey)
--Executed after the "toggle*" cheat got executed
local memrec=memoryrecordhotkey_getOwner(Hotkey)
local isActive=memoryrecord_isActive(memrec) --get the state after the hotkey got triggered
cheatcomponent_setActive(CETrainer_CHEAT0, isActive)
if gBeepOnAction then
beep()
end
end
memoryrecordhotkey_onPostHotkey(memrec0_hotkey0,onPostHotkey0)
------------------
someone can help me
THANKS
|
|