![]() ![]() Tooltip, timer 2 is running for %keytime2%, 100, 30, 2 $2:: <- do whatever you have set up key 2 actionįlagtimer2 = 0 <- turn the timer flag off - meaning it's not done Tooltip, timer 1 is running for %keytime1%, 100, 0, 1 $1:: <- do whatever you have set up key 1 actionįlagtimer1 = 0 <- turn the timer flag off - meaning it's not done to show you what it's doing it will turn off i added a small tooltip to each key routine Return <- forced end of autoexecute section these are the flags your script checks to make sure you re-activate the skill it depends on Keytime3 = -7000 <- put your own timer time for key 3 here Keytime2 = -5000 <- put your own timer time for key 2 here Keytime1 = -10000 <- put your own timer time for key 1 here you only have to turn them on when you do need them. that way you don't have to remember to turn them off when you don't need them. i like one shots because they turn themselves off automatically once they're done these timers are all 1 shot timers as indicated by the - sign in front of the period. That could be done fairly easily using semaphores (flags) that tell if a given timer has elapsed without actually interrupting the flow of the program. You could technically create one timer with multiple consecutive (different time periods running one after another) time periods but I suspect you want them all running concurrently. You just have to be careful to make sure the timers don't "collide" with each other. Adding more timers is definitely a possibility. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |