Thanks Steve, but I couldn't get your suggestion to work. Sounded like a good idea, though. Here's an example of what I'd like to have happen.

Script of btn 1:

on mouseup
  repeat with i = 1 to 10000
     put i
     if i = 200 then tryit
  end repeat
end mouseup

on tryit
   ---do something here that stops the repeat loop from running
end tryit

Here's the tough part... I can't know in advance where the running script is originating. I simply know something is running somewhere in my stack, and whatever it is, I want to abort it via script control.

Thanks.
Richard


On Jan 12, 2007, at 11:34 AM, Stephen Barncard wrote:

untested:

Type "." with commandkey

from the docs
Use the type command to show text appearing in a field at typing pace or to send keyboard events to a stack.

another way of course


on beginloop
   repeat forever
     -- code
     -- code
     if the mouse is "down" then exit to top
   end repeat
end beginloop


How can I send "command-period" to a running script through a button press rather than the message box? I want to be able to interrupt a running script by pressing a button.

Thanks.
Richard Miller
Imprinter Technologies

--


stephen barncard
s a n  f r a n c i s c o
- - -  - - - - - - - - -


_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to