I would encourage you to take a look at a lua timer example:
Code:
Switch=0
myTimer = createTimer(nil, false)
myTimer.Interval = 3000 -- three seconds
myTimer.OnTimer = function(t)
writeInterger(...)
sleep()
writeInteger(...)
--or have this example
if Switch == 0 then
writeInteger()
Switch = 1
else
writeInteger()
Switch = 0
myTimer.Enabled = false
end
end
ASM script to toggle the lua (which can be set to a hotkey if you desire).
Code:
{$lua}
if syntaxcheck then return end
[ENABLE]
myTimer.Enabled = true
[DISABLE]
myTimer.Enabled = false
my lua may not be 100% correct since it was done off the top of my head at 7am with no sleep, but the general idea is correct.
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