Re: Exit Repeat

2006-03-20 Thread Mark Smith
In fact, I tested this, and it works. Though it'd still be cleaner, somehow, to be able to test for the exit condition within the loop. Mark On 20 Mar 2006, at 01:08, Geoff Canyon wrote: Close, but I don't think this will work. The exit to top in the escapeKey handler will exit that

Re: Exit Repeat

2006-03-20 Thread Geoff Canyon
On Mar 20, 2006, at 1:08 AM, Mark Smith wrote: In fact, I tested this, and it works. Though it'd still be cleaner, somehow, to be able to test for the exit condition within the loop. Wow, you are so correct. I had thought exit to top would exit the handler it is in and all handlers in the

Re: Exit Repeat

2006-03-20 Thread Chipp Walters
Geoff Canyon wrote: Does anyone remember what the property containing the callstack is offhand to check this? put the executioncontexts() (i think!) -c ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to

Re: Exit Repeat

2006-03-20 Thread Chipp Walters
OOPS.. I mean put the executioncontexts (no parens) ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

Re: Exit Repeat

2006-03-20 Thread Geoff Canyon
On Mar 20, 2006, at 1:47 AM, Chipp Walters wrote: put the executioncontexts Thanks, Chipp! Now we have a puzzle (I think) I have a button with this script: on mouseUp set the canInterrupt of this stack to true repeat with i = 1 to 1000 wait 0 ticks with messages put i end

Exit Repeat

2006-03-19 Thread Camm29
I need to Exit a Repeat and go to another card if i press a button ! Regards Camm ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

Re: Exit Repeat

2006-03-19 Thread simplsol
Camm, If the repeat script is in a stack script, something like this might do it for you: on repeat... if the hilite of button Stop this repeat is true then go to card x exit repeat end if do repeat stuff do more repeat stuff end repeat -Original

Re: Exit Repeat

2006-03-19 Thread Ken Ray
On 3/19/06 11:48 AM, Camm29 [EMAIL PROTECTED] wrote: I need to Exit a Repeat and go to another card if i press a button ! If you could post the part of your script you're having trouble with, we'd be able to help you better. You can use exit repeat from inside a repeat loop to bail out

Re: Exit Repeat

2006-03-19 Thread jbv
if the mouse is down then go cd X exit repeat end if I need to Exit a Repeat and go to another card if i press a button ! ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe

Re: Exit Repeat

2006-03-19 Thread Camm29
It's exactly what's needed , but i could not get this to work ? Regards Camm - Original Message - From: [EMAIL PROTECTED] To: use-revolution@lists.runrev.com Sent: Sunday, March 19, 2006 6:16 PM Subject: Re: Exit Repeat Camm, If the repeat script is in a stack script, something like

Re: Exit Repeat

2006-03-19 Thread Mark Smith
: Sunday, March 19, 2006 6:16 PM Subject: Re: Exit Repeat Camm, If the repeat script is in a stack script, something like this might do it for you: on repeat... if the hilite of button Stop this repeat is true then go to card x exit repeat end if do repeat

Re: Exit Repeat

2006-03-19 Thread Camm29
YES , Please - Original Message - From: Mark Smith [EMAIL PROTECTED] To: How to use Revolution use-revolution@lists.runrev.com Sent: Sunday, March 19, 2006 6:48 PM Subject: Re: Exit Repeat Do you also want to exit the current handler that contains the repeat? Mark On 19 Mar 2006

Re: Exit Repeat

2006-03-19 Thread Mark Smith
- From: Mark Smith [EMAIL PROTECTED] To: How to use Revolution use-revolution@lists.runrev.com Sent: Sunday, March 19, 2006 6:48 PM Subject: Re: Exit Repeat Do you also want to exit the current handler that contains the repeat? Mark On 19 Mar 2006, at 18:38, Camm29 wrote: It's exactly

Re: Exit Repeat

2006-03-19 Thread Mark Smith
And while we're on the subject, does anyone have a way of finding out if the escape key is down? This would be a more natural key to use to abort, but I can't see a way to do it, it doesn't register with keyDown, and doesn't show up in keysDown()...It might be good to be able to use it

Re: Exit Repeat

2006-03-19 Thread Andre Garzia
Mark, there is a escapekey message... on escapekey --- crash dive! crash dive! end escapekey :D Cheers andre On Mar 19, 2006, at 4:46 PM, Mark Smith wrote: And while we're on the subject, does anyone have a way of finding out if the escape key is down? This would be a more natural key

Re: Exit Repeat

2006-03-19 Thread Mark Smith
Andre, the trouble is that in the case of interrupting a repeat loop, you can't test for whether the escape key is down like you can with control/option/command. So use control/option/command, of course :) But the escape key would be more natural... Marl On 19 Mar 2006, at 19:56, Andre

re: Exit Repeat

2006-03-19 Thread Richard Gaskin
Mark Smith wrote: Andre, the trouble is that in the case of interrupting a repeat loop, you can't test for whether the escape key is down like you can with control/option/command. So use control/option/command, of course :) But the escape key would be more natural... Check out the entry

Re: Exit Repeat

2006-03-19 Thread Geoff Canyon
On Mar 19, 2006, at 12:04 PM, Mark Smith wrote: Andre, the trouble is that in the case of interrupting a repeat loop, you can't test for whether the escape key is down like you can with control/option/command. So use control/option/command, of course :) But the escape key would be more

Re: Exit Repeat

2006-03-19 Thread Mark Smith
On my setup (Mac 10.4.5, Rev 2.7), the keysDown doesn't seem to cover the escape key, or any other non-ascii key, unless an ascii key is also down... Mark On 19 Mar 2006, at 21:41, Richard Gaskin wrote: Mark Smith wrote: Andre, the trouble is that in the case of interrupting a repeat

Re: Exit Repeat

2006-03-19 Thread Mark Smith
'wait 0 ticks with messages' was the thing - thanks! So a general (stack-wide) approach might be to use a custom prop in the stack: in a control, card or stack: on handlerWithRepeatIMightWantToInterrupt set the canInterrupt of this stack to true repeat forever wait 0 ticks with

Re: Exit Repeat

2006-03-19 Thread Geoff Canyon
Close, but I don't think this will work. The exit to top in the escapeKey handler will exit that handler, not the handlerWithRepeatIMightWantToInterrupt. Instead, set a custom property in the escapeKey handler, then check that property in your handlerWithRepeatIMightWantToInterrupt handler

exit repeat forcefully

2004-04-14 Thread hershrev
Hi, How can I get out of a repeat forcefully ? Some how my script keeps on just on repeating beyond the repeat for 3 times Thanks , hershrev ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution

Re: exit repeat forcefully

2004-04-14 Thread Klaus Major
Hi hershrev, Hi, How can I get out of a repeat forcefully ? Some how my script keeps on just on repeating beyond the repeat for 3 times Did you try CMD + . (Period)? Works most of the time, gives an error or two, but you are OUT :-) Thanks , hershrev Regards Klaus Major [EMAIL PROTECTED]

Re: exit repeat forcefully

2004-04-14 Thread hershrev
On Wednesday, April 14, 2004, at 03:57 PM, Klaus Major wrote: Hi hershrev, Hi, How can I get out of a repeat forcefully ? Some how my script keeps on just on repeating beyond the repeat for 3 times Did you try CMD + . (Period)? Yes. the repeat is on an ask password. so when I CMD PERIOD it just

Re: exit repeat forcefully

2004-04-14 Thread Brian Yennie
Hershrev, If you just need to get at the script and change it, try this in the message box: The idea being, you can open a stack without generating an openStack message by locking messages. answer file Locate your stack put it into theStack lock messages go stack theStack unlock messages edit

Re: exit repeat forcefully

2004-04-14 Thread Klaus Major
Hi hershrev, On Wednesday, April 14, 2004, at 03:57 PM, Klaus Major wrote: Hi hershrev, Hi, How can I get out of a repeat forcefully ? Some how my script keeps on just on repeating beyond the repeat for 3 times Did you try CMD + . (Period)? Yes. the repeat is on an ask password. so when I CMD

Re: exit repeat forcefully

2004-04-14 Thread hershrev
Yes , very good. you saved me. Thanks. On Wednesday, April 14, 2004, at 04:11 PM, Brian Yennie wrote: Hershrev, If you just need to get at the script and change it, try this in the message box: The idea being, you can open a stack without generating an openStack message by locking messages.