This goes against the reason for having the hotkey in the first place. The information provided is also quite vague. The hotkey for an entry within the Cheat Engine address list? A checkbox is on a trainer or within the Cheat Engine address list? Need more information.
function hotkeyFunc1()
sleep(250)
print("Hello Lua!")
end
function hotkeyFunc2()
sleep(250)
print("Hello CE!")
end
chk1.OnChange=function(sender)
if sender.checked==true then
if key1 then key1.Destroy() key1=nil end
key1=createHotkey(hotkeyFunc1,VK_F8)
chk1.caption="F8 Key ON"
else
if key1 then key1.Destroy() key1=nil end
chk1.caption="F8 Key Off"
end
end
local key2State = 0
btn1.OnClick=function()
if key2State==0 then
if key2 then key2.Destroy() key2=nil end
key2=createHotkey(hotkeyFunc2,VK_F9)
key2State = 1
btn1.caption="F9 Key ON"
else
if key2 then key2.Destroy() key2=nil end
key2State = 0
btn1.caption="F9 Key Off"
end
end
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