You can't if you script it that way ("within ms"), but a better way to do it altogether is by using a stopwatch...and then you can reset them also (of course you'll be using multiple stopwatches, one for each buff).
If you don't know how to use stopwatches, a user has a video here:
viewtopic.php?f=111&t=22190 look for "how to create and use a stopwatch."
So you would create a stopwatch for each buff, replace your "if within ms" with:
- read stopwatch("buff1")
- If variable.is greater than 2400000 ms
-- rest is the same:
Keyboard.Press keys at once("{<f9>}")
After that you can add "reset stopwatch" in the place that you described (well, 3 of them...one for each stopwatch). However, I don't think you really want to reset the timers (in any case) here...that would mess up the timing no matter how you do it. Why do you want to reset here?
Using stopwatches, you shouldn't have to do a total reset. I would add a reset for each buff after the "keyboard.press keys at once("{<f9>}")"...you shouldn't need to reset again at all.
You can't if you script it that way ("within ms"), but a better way to do it altogether is by using a stopwatch...and then you can reset them also (of course you'll be using multiple stopwatches, one for each buff).
If you don't know how to use stopwatches, a user has a video here: http://www.blueeye-macro.com/viewtopic.php?f=111&t=22190 look for "how to create and use a stopwatch."
So you would create a stopwatch for each buff, replace your "if within ms" with:
- read stopwatch("buff1")
- If variable.is greater than 2400000 ms
-- rest is the same:
Keyboard.Press keys at once("{<f9>}")
After that you can add "reset stopwatch" in the place that you described (well, 3 of them...one for each stopwatch). However, I don't think you really want to reset the timers (in any case) here...that would mess up the timing no matter how you do it. Why do you want to reset here?
Using stopwatches, you shouldn't have to do a total reset. I would add a reset for each buff after the "keyboard.press keys at once("{<f9>}")"...you shouldn't need to reset again at all.