Posted: Mon Jun 13, 2016 1:09 pm Post subject: If statement with certain values
Hello,
I would like to know if it is possible to code a script which pops up a messagebox or is giving an alert in any way when a certain integer value is reached. This would help me very very much Thank you!!
checkIntT = createTimer()
checkIntT.Interval = 100
checkIntT.OnTimer = function(sender)
if readInteger("1234ABCD") == 1000 then
showMessage("Value of 1000 reached!")
checkIntT.Enabled = false
-- or use checkIntT.destroy() if you don't plan to reenable it later
end
end
_________________
I don't know where I'm going, but I'll figure it out when I get there.
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