Any way to use repeat and be able to use buttons and stuff without it freezing everything?
on eggtimer
repeat until field "numbers" < 1
wait ,1 seconds
subtract ,1 from field "numbers"
wait 4 seconds
end repeat
end eggtimer
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
on eggtimer
repeat until field "numbers" < 1
wait ,1 seconds
subtract ,1 from field "numbers"
wait 4 seconds
end repeat
end eggtimer
Code: Select all
on mouseUp
put 31 into fld 1
startTimer
end mouseUp
on startTimer
if the optionKey is down or fld 1 = 0 then exit to top
subtract 1 from fld 1
send "startTimer" to me in 30
end startTimer
Code: Select all
on mouseUp
repeat for each line tLine in the PendingMessages --fixes issue with clicking multiple times
cancel item 1 of tLine
end repeat
put 31 into fld 1
startTimer
end mouseUp
Code: Select all
repeat until tScore is 0
subtract 1 from tScore
put tScore into field "scoreField"
wait 5 seconds with messages
if cancelled then exit repeat
end repeat