user interrupts
Sarah Reichelt
sarah.reichelt at gmail.com
Wed Dec 14 22:49:53 EST 2005
On 12/15/05, Preston Shea <darkshadow1 at metrocast.net> wrote:
> When the user interrupts a running handler, the image of the card is left on the screen. Is there a way to get rid of it without rebooting? Is there are gentler form of controlled crash?
Does your handler close the card or go to a different card if it
finishes normally? If so, when you interrupt, the card will most
likely still be there or the wrong card will be displayed in the stack
window. You can close the stack window or use the arrow keys or the
View menu to navigate back to the card you want.
While Command-period stops any handler abruptly, you can script a way
to get out of a loop yourself. Here is an example:
on mouseUp
repeat 1000 times
put random(1000)
if the mouse is down then exit repeat
end repeat
put "Finished"
end mouseUp
This loops 1000 times if undisturbed, but at any stage, if it detects
that you are holding down the mouse button, it will immediately stop
looping, but it will continue on with the rest of the script.
Cheers,
Sarah
More information about the use-livecode
mailing list