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
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
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
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:
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
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:
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
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
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
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
: 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
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
-
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
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
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
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
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
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
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
'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
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
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
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]
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
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
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
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.
27 matches
Mail list logo