exohaxor Expert Cheater
Reputation: 1
Joined: 02 Sep 2018 Posts: 101
|
Posted: Sun Sep 02, 2018 10:47 am Post subject: lua pointer check values |
|
|
how do i make a script that checks if pointer value is 1 and if value is 1 it sends keys to a specific window please help
i tried this
function CheckValue(t)
local al=getAddressList()
local memrec=al.getMemoryRecordByDescription("ok")
if memrec~=nil then
memrec.Active = true
if tonumber(memrec.Value) == 9 then
showMessage("value is 9")
return caFree
end
end
end
function ActivateTimer()
t=createTimer(nil)
t.OnTimer=CheckHealth
t.Interval=1000 --every 1 second
t.Enabled=true
end
|
|