terminate script from keyboard
Rob Cozens
rcozens at pon.net
Fri May 21 11:02:33 EDT 2004
>How would you stop this?
>>
>>on mouseUp
>> repeat 100000 times
>> put "hello" & cr after fld 1
>> answer "hello"
>> end repeat
>>end mouseUp
1. on mouseUp
repeat 100000
put "hello"&return after field 1
answer "hello" with "Goodbye" or "Hi back"
if it is "Goodbye" then exit repeat
end repeat
end mouseUp
2. on mouseUp
repeat 100000
put "hello"&return after field 1
answer "hello"
if the controlKey is down then exit repeat -- untested; should exit
-- if controlKey is down when the answer dialog is closed
end repeat
end mouseUp
--
Rob Cozens
CCW, Serendipity Software Company
"And I, which was two fooles, do so grow three;
Who are a little wise, the best fooles bee."
from "The Triple Foole" by John Donne (1572-1631)
More information about the use-livecode
mailing list