Here is a start...


-------------------Timer 1----------------
--this is off task button 1093
global passingtime1,passingtime2,passingtime3,gswitch
set the numberFormat to "0."
on mouseup
   send CountDown to me in 1 secs
put false into gswitch
end mouseup
------------
on CountDown
if gswitch then
add 1 to passingtime2--timer no. 2
put passingtime2 into cd fld "b1f2x"--display timer 2
add 1 to passingtime3--total time both timers
put passingtime3 into cd fld "b1f3x"--disply total time
put (passingtime2/passingtime3*100) & "% off task" into cd fld "b1f3"
-- % time off task
put (100-(passingtime2/passingtime3*100)) & "% on task" into cd fld "b1f2"
-- % time on task
      send CountDown to me in ??? secs
end if
 end countdown
----------------end of timer 1-----------------

This is not quite there, because it is possible to get more than one cycle started, but it should give you the flavor of the way to go.


Dar Scott

_______________________________________________
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to