Posted: Sun Jun 19, 2022 4:09 pm Post subject: what code should i write?
i created a trainer today i want to add a function one day but i don't know how help me please.
For example, I want it to return to normal when I press the F2 key, I want it to be fast when I press the F3 key. How can I do this, what code do I need to write?
function CETrainer_CEButton1Click()
speedhack_setSpeed(1)
end
function CETrainer_CEButton2Click()
if tmr then tmr.destroy(); tmr = nil end
local tmr = createTimer(getMainForm())
tmr.Interval = 100
tmr.OnTimer = function()
if (isKeyPressed(VK_F2)) then
speedhack_setSpeed(2)
else
return
end
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