#!/bin/sh # MetaCard 2.4 stack # The following is not ASCII text, # so now would be a good time to q out of more exec mc $0 "$@" clickdetector2Con preOpenStack set loc of me to the screenLoc end preOpenStack bFclick detectorU helveticaU helveticaUArial UArialUArial U helvetica Uarial Pfunction getColor put random(256) into R put random(256) into G put random(256) into B return R & "," & "G" & "," & B end getColor ffffff uClickTraptrue  display1id# NOTE: NOTICE THAT THERE IS NO REPEAT LOOP # IN THIS SCRIPT. USING "SEND IN..." IS A MORE # EFFICIENT WAY TO SCRIPT A LOOPING EVENT # THAT ALLOWS OTHER MOUSE EVENTS TO TAKE # PLACE WHILE THE LOOP IS RUNNING. USING THIS # TECHNIQUE MAKES POLLING OF THE MOUSE STATE # UNNECESSARY SO YOU NEVER NEED TO TEST IF # THE MOUSE WAS CLICKED WHILE A LOOP IS RUNNING. # THIS MOUSEUP HANDLER SETS A VARIABLE STATE # WHICH IS TESTED IN THE SWITCHDOTS HANDLER on mouseUp if not the uClickTrap of me then set the uClickTrap of me to true put "paused" into fld status1 else set the uClickTrap of me to false switchDots1 put "running" into fld status1 end if end mouseUp on mouseRelease mouseUp end mouseRelease on switchDots1 if the uClickTrap of me then exit switchDots1 global gCurrDot1,gCurrTime1 if gCurrDot1 is empty then put 0 into gCurrDot1 if gCurrTime1 is empty then put the milliseconds into gCurrTime1 if the milliseconds > gCurrTime1 + 250 then if gCurrDot1 <> 0 then set the opaque of grc ("dot" & gCurrDot1) of me to false if gCurrDot1 < 4 then add 1 to gCurrDot1 else put 1 into gCurrDot1 set the backColor of grc ("dot" & gCurrDot1) of me to getColor() set the opaque of grc ("dot" & gCurrDot1) of me to true put empty into gCurrTime1 end if send "switchDots1" to me in 10 milliseconds end switchDots1 E_fX uClickTraptrue disk.png@cPP PNG  IHDRPPgAMAOX2tEXtSoftwareAdobe ImageReadyqe<PLTElllmmmkkknnnoooqqqtttrrriiijjjxxxuuuvvvpppfffyyy{{{|||ccc\\\aaaYYY___wwwzzzRRR}}}```WWWPPPbbbXXXUUUIIIMMM~~~333NNN]]]DDD(((TTT<<<;;;CCCBBBKKKQQQFFF!!!???GGG@@@###888999===^^^...JJJ---///666,,,:::VVV***777EEE'''>>>[[[$$$LLLZZZ&&&OOO000)))"""SSS%%%HHH +++AAAsssΜ)yIDATxb`2 #: BXYYX h q;;+ ~3i|R 4h(^3q@r  I!AAA HMS5 NJh(p!KqHMg$@as;4 avlK J<nA5q8Bc038xeE-cIC2]),zh +b `=N S7m022Sd1  X3"B̔q@0F|ld. B)cPocH@xaL MeI ͳfSW )i@3yhq*Jpg6S*R D_LF,4B ` gCurrTime2 + 250 then if gCurrDot2 <> 0 then set the opaque of grc ("dot" & gCurrDot2) of me to false if gCurrDot2 < 4 then add 1 to gCurrDot2 else put 1 into gCurrDot2 set the backColor of grc ("dot" & gCurrDot2) of me to getColor() set the opaque of grc ("dot" & gCurrDot2) of me to true put empty into gCurrTime2 end if send "switchDots2" to me in 10 milliseconds end switchDots2 EfX uClickTraptrue disk.png@PP PNG  IHDRPPgAMAOX2tEXtSoftwareAdobe ImageReadyqe<PLTElllmmmkkknnnoooqqqtttrrriiijjjxxxuuuvvvpppfffyyy{{{|||ccc\\\aaaYYY___wwwzzzRRR}}}```WWWPPPbbbXXXUUUIIIMMM~~~333NNN]]]DDD(((TTT<<<;;;CCCBBBKKKQQQFFF!!!???GGG@@@###888999===^^^...JJJ---///666,,,:::VVV***777EEE'''>>>[[[$$$LLLZZZ&&&OOO000)))"""SSS%%%HHH +++AAAsssΜ)yIDATxb`2 #: BXYYX h q;;+ ~3i|R 4h(^3q@r  I!AAA HMS5 NJh(p!KqHMg$@as;4 avlK J<nA5q8Bc038xeE-cIC2]),zh +b `=N S7m022Sd1  X3"B̔q@0F|ld. B)cPocH@xaL MeI ͳfSW )i@3yhq*Jpg6S*R D_LF,4B `