Set counter at 15000 ms
Set timer1 with 1000 ms
When timer1 fires:
counter -= 1000
update progressbar
if counter <= 0
stop timer1
start timer2 with 1000 ms as a singleShot
When timer 2 fires:
set counter = 15000 ms
start timer1 again
Set counter at 15000 ms
Set timer1 with 1000 ms
When timer1 fires:
counter -= 1000
update progressbar
if counter <= 0
stop timer1
start timer2 with 1000 ms as a singleShot
When timer 2 fires:
set counter = 15000 ms
start timer1 again
To copy to clipboard, switch view to plain text mode
Maybe not complete, but you get the picture...
Bookmarks