Ending recursion

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Ending recursion

Post by serendipity »

I see that if by mistake I end up in a never ending loop using a script I can press and hold escape to end that loop. Was this intended or I just found something new. In any case I like it. :)

admin
Site Admin
Posts: 66075
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Ending recursion

Post by admin »

serendipity wrote:I see that if by mistake I end up in a never ending loop using a script I can press and hold escape to end that loop. Was this intended or I just found something new. In any case I like it. :)
Don't know. Give an example.

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Post by serendipity »

Ok, just made-up one to move to next tab:

Code: Select all

"Cycle Tabs Forward : ctf"
 #1018; 
 sub ctf
this sets the loop (when recursion checker is off).
Now you can press and hold escape to end loop.

jacky
XYwiki Master
Posts: 3106
Joined: 23 Aug 2005 22:25
Location: France
Contact:

Post by jacky »

I think that's intended, at least I always thought it was...
Proud XYplorer Fanatic

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Post by serendipity »

jacky wrote:I think that's intended, at least I always thought it was...
Yeah, I thought the same too when i saw this happening. Its actually useful in case of accidental loops.

admin
Site Admin
Posts: 66075
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Post by admin »

serendipity wrote:
jacky wrote:I think that's intended, at least I always thought it was...
Yeah, I thought the same too when i saw this happening. Its actually useful in case of accidental loops.
Yes, true. Had been added already in v6.80.0007 - 2008-01-10 11:24.

Code: Select all

    + Scripting: Now you can terminate a running script by pressing ESC. 
      The next to follow functions will not be executed anymore.
So you can even stop a non-recursing script by ESC.

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Post by serendipity »

Oh ok, so we always had the safety belt.

Post Reply