Posted: Tue Apr 19, 2022 2:35 am Post subject: If else statement
Hi, I wanted to do a simple thing.
What i wanted to do is: Always check if value at specific address (0019FAD4 for example) is 1000, if 1000 then change to 100 and will keep doing it like an auto script.
I have no knowledge in assembler so i don't know how to achieve such thing, can anyone tell me how to do it?
-- Destroy the timer if it exists
if timer then timer.destroy(); timer = nil end
timer = createTimer(getMainForm())
timer.Interval = 100
timer.OnTimer = function()
local val = readInteger(0x0019FAD4)
if val == 1000 then
writeInteger(0x0019FAD4, 100)
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