Why not put this in a "repeat forever" loop and test for iStopp=0, then exit
repeat when true?
Put 1 into iStopp
Repeat while iStopp<>0
Intersect testing code that puts 0 into iStopp, appropriately
If iStopp=0 then
Exit repeat
End if
End repeat
Of course, there is probably some reaso
If a maze has modest dimensions such as 50 x 100 squares, LiveCode
should be able to handle a recursive solution with no issues.
If a maze has very large dimensions or irregular paths to test, I would
play it safe by using pseudo recursion or other techniques. That way you
"burn rubber" on t
If the mouseDown handler calls the mouseUp again, then it's a type of
recursion. You can avoid that by sending the mouseDown after the mouseUp
has ended :
if STOPP = 0 then
send "mouseDown" to btn "GO2" in 0
end if
(I wonder why your scripts lose all the spaces when they pass through the
lis
Well I'm not doing infinite recursion:
MouseUp Script inside button "GO2" sending "mouseDown" to button "GO2"
onmouseUp
put0 intoSTOPP
ifintersect(img "ball1",img "stop") then
put1 intoSTOPP
endif
ifintersect(img "ball2",img "stop") then
put1 intoSTOPP
endif
ifintersect(img "ball3",img "
On 2017-07-04 09:28, Richmond Mathewson via use-livecode wrote:
BUT . . .
How can one know how high one can set the recursionLimit before smoke,
sparks
and flames are going to start leaping out of the back of the computer?
Or, less frivolously; how can one determine the upper limit on the
rec
BUT . . .
How can one know how high one can set the recursionLimit before smoke,
sparks
and flames are going to start leaping out of the back of the computer?
Or, less frivolously; how can one determine the upper limit on the
recursionLimit before the
stack "hangs" (presumably that means the
Aha!
I'm listening to "the man" himself.
Thank you very much indeed.
I do hope you still find time to keep practicing the piano as a programmer
who also plays the piano does an awful lot to dispell the geek myth.
Best, Richmond.
On 7/4/17 10:20 am, Mark Waddingham via use-livecode wrote:
On
On 7/4/17 10:11 am, Lagi Pittas via use-livecode wrote:
Hi Richmond,
I'm wondering if the recursion limit is limited within the IDE and you are
allowed to recurse to your hearts content in a standalone.
Possibly . . . I don't know how to 'recurse' but I do know how to 'curse
to my heart's
On 2017-07-04 09:05, Richmond Mathewson via use-livecode wrote:
"the handler: revIDEStackNameIsIDEStack
has reached the recursion limit of: 40.
Execution will be terminated to prevent hang"
OK, OK, hanging is a type of execution.
This is "all very charming" but I want the script to
go on "c
Hi Richmond,
I'm wondering if the recursion limit is limited within the IDE and you are
allowed to recurse to your hearts content in a standalone.
Well that's what I would surmise from the error message - IDEstack.
I could be wrong though.
Regards Lagi
On 4 July 2017 at 08:05, Richmond Mathew
When I set the depth to 1 all I would get
is the pWhatFolder but 2 would list the
files at level 1.
JB
> On Oct 30, 2015, at 5:57 AM, Peter M. Brigham wrote:
>
> Here is a version that puts the trailing "/" on folders and adjusts the input
> parameters for the function.
>
> -- Peter
>
> Pe
Here is a version that puts the trailing "/" on folders and adjusts the input
parameters for the function.
-- Peter
Peter M. Brigham
pmb...@gmail.com
http://home.comcast.net/~pmbrig
--
function directoryListing pWhatFolder, pInvisibleFiles, pDepth
-- returns a full listing of th
This is a mouseUp handler to be used with
Geoff Canyon’s function directoryListing.
Paste the code below in field script and
set the lock text of the field to true.
I had a bug in the last version and used the
word controlKey twice in the launch script.
It is now corrected to use controlKey and
co
"there is a folder" and "there is a file" can distinguish between the two.
Obviously if you want to distinguish visually for the user, or to do it
without testing, then including the trailing "/" would work.
On Wed, Oct 28, 2015 at 1:51 PM, Michael Doub wrote:
> When I saw that the output contai
I improved the mouseUp handler. Now you can set
the desired level at the top of the handler and you
can launch applications and folders in the finder.
on mouseUp
put 1 into cNum
if target = empty then
answer folder "Pick a folder you want to walk:"
put it into whatFolder
s
Here is a different mouseUp handler you
can put in a field.
on mouseUp
if target = empty then
answer folder "Pick a folder you want to walk:"
put it into whatFolder
set cursor to watch
put directoryListing(whatFolder,2) into target
exit to top
end if
if the c
When I saw that the output contained both directories and files, adding
the "/" allows you to
easily know that you are looking at a folder rather than a file.
put directoryListing(whatfolder) into foo
repeat for each line x of foo
if char -1 of x = "/" then
put x & cr after directoryList
el
Thank you for the info.
JB
> On Oct 28, 2015, at 7:46 AM, Geoff Canyon wrote:
>
> Sounds like just the fact that you don't have the scrollbar I used to
> experiment with the depth. The mouseUp code is just for testing -- the
> function is self-contained.
>
> gc
>
> On Tue, Oct 27, 2015 at 4:
For me it made more sense to change the exit value to 1. That way the value
is the number of layers you want *including* the directory you specify. So:
put directoryListing("/Users/gcanyon/Desktop",1)
-- puts /Users/gcanyon/Desktop
That way using either 0 or empty gets the infinite list.
The tra
Sounds like just the fact that you don't have the scrollbar I used to
experiment with the depth. The mouseUp code is just for testing -- the
function is self-contained.
gc
On Tue, Oct 27, 2015 at 4:32 PM, JB wrote:
> I was not able to get the mouseUp handler to
> work but I got the function to
If you have already put a directory listing in
a field and want to click a line to get the list
of that line you can put this code in the field.
on mouseUp
put word 2 of the clickline into tLine
put line tLine of target into whatFolder
put directoryListing(whatFolder,2) --into fld id 3424
I was not able to get the mouseUp handler to
work but I got the function to return a list but it
probably not the same list. I used this.
on mouseUp
answer folder "Pick a folder you want to walk:"
put it into whatFolder
--put directoryListing(fld "directory",round(the thumbposition of
Geoff,
I would suggest replacing the first statement of the function with
if c is empty then put -1 into c-- set the default to go all the way
down
put whatFolder & "/" & cr into R -- add a "/" to directory output so
they are more easily parsed later
-= Mike
On 10/27/15 12:18 PM, Geof
Thank you, Geoff
JB
> On Oct 27, 2015, at 9:18 AM, Geoff Canyon wrote:
>
> Revised. Now in function form, with error checking and depth control. You
> can hand in a positive number to get that number of layers deep, or a
> negative number to go all the way down. I tested it on my home director
Revised. Now in function form, with error checking and depth control. You
can hand in a positive number to get that number of layers deep, or a
negative number to go all the way down. I tested it on my home directory
and it came back fine (after some time). I haven't (knowingly) tested with
unusual
On Sat, Oct 24, 2015 at 7:28 PM, Matthias Rebbe | M-R-D <
matthias_livecode_150...@m-r-d.de> wrote:
> I am using a script snippet which was posted by Scott Rossi to the list
> and was originally from Geoff Canyon in 2002.
> http://lists.runrev.com/pipermail/metacard/2002-August/002274.html
>
Man,
Okay - Thank you very much again!
JB
> On Oct 25, 2015, at 6:09 PM, Alex Tweedly wrote:
>
> I'm not sure about cursor setting - you might put in a counter, and set it to
> busy every 1000 (or 10,000) times through loop.
>
> What if we want only folder paths ?
>
> I did briefly consider sayi
I'm not sure about cursor setting - you might put in a counter, and set
it to busy every 1000 (or 10,000) times through loop.
What if we want only folder paths ?
I did briefly consider saying that the @pFiles and @pFolders parameters
could have TRUE/False values on input, and then say somethin
I have been testing it out and it is working good
so far. I set the cursor to watch after selecting.
I am not sure if setting it to busy in a repeat will
take too much time on large operations.
Is there and easy way to have it only list the
folder paths?
JB
> On Oct 25, 2015, at 3:39 PM, Alex
Thanks for all your comments.
Richard was right, my recursion limit error was caused by the fact that the
directory could not be set.
It was, like Alex assumed, a strange character in a folder. After i changed
that folder name in my “sample” harddrive i was able to import the drive.
In future
THANK YOU VERY MUCH, Alex.
JB
> On Oct 25, 2015, at 3:39 PM, Alex Tweedly wrote:
>
> Well, it's a sad comment on my filing system, but it was easier to rewrite
> this handler from scratch (and memory) than it was to find the original :-)
>
> Note this is done as a handler rather than a funct
Well, it's a sad comment on my filing system, but it was easier to
rewrite this handler from scratch (and memory) than it was to find the
original :-)
Note this is done as a handler rather than a function, because it has 3
return values - a list of files, a list of folders, and a list of any
> On Oct 24, 2015, at 5:33 PM, Alex Tweedly wrote:
>
>
> If that's not it, then you need to change to a serialized rather than a
> recursive treewalk - I'm sure that's been posted on the use-list some time
> ago (if you can't find it, let me know and I'll dig one up)
>
> -- Alex.
I would li
Are you sure you are actually hitting a recursion limit ?
Another (perhaps more likely) problem is that you are hitting a
protected directory, or one which you cannot access (e.g. because of
strange character in name).
I would (at a minimum) put in a check that you have moved to the folder:
Matthias Rebbe wrote:
long time ago i created a program which creates a list of files of backup cds
or dvds and stores that listings in a database with some additional information
like cd name/number.
So if the customer needs to know on which cd/dvd a needed fileis, the database
can be searc
On 02/12/2012 09:07 PM, Bob Sneidar wrote:
I was joking. :-)
Personally I just put iTunes screen-effects thingy to full screen and
sit in front of it about 12 inches away
and I'm gone in about 15 seconds.
On Feb 10, 2012, at 2:59 PM, stephen barncard wrote:
depends on the application. Al
I wasn't. Some apps (such as iShowU-HD screen capture) obfuscate the
feedback (for no reason), when it showed in earlier versions.
On 12 February 2012 11:07, Bob Sneidar wrote:
> I was joking. :-)
>
> On Feb 10, 2012, at 2:59 PM, stephen barncard wrote:
>
>> depends on the application. Always wor
I was joking. :-)
On Feb 10, 2012, at 2:59 PM, stephen barncard wrote:
> depends on the application. Always works in the analog world and much
> more trippy with a CRT. Some digital apps seem to want to keep us from
> having fun with this.
>
> On 10 February 2012 14:17, Bob Sneidar wrote:
>> Ev
On Feb 10, 2012, at 4:35 PM, Mark Wieder wrote:
> haha...
>
> ever tried a Google search for recursion?
Circular definition: see Definition, circular.
-- Peter
Peter M. Brigham
pmb...@gmail.com
http://home.comcast.net/~pmbrig
___
use-livecode maili
depends on the application. Always works in the analog world and much
more trippy with a CRT. Some digital apps seem to want to keep us from
having fun with this.
On 10 February 2012 14:17, Bob Sneidar wrote:
> Every time I encounter video feedback all I can see is white.
>
> Bob
>
>
> On Feb 10,
Every time I encounter video feedback all I can see is white.
Bob
On Feb 10, 2012, at 1:55 PM, Mark Wieder wrote:
> stephen barncard writes:
>
>>
>> yeah I LOVE to play with video feedback!
>
> ...the problem with video feedback is that I end up getting lost in there for
> hours...
>
> --
stephen barncard writes:
>
> yeah I LOVE to play with video feedback!
...the problem with video feedback is that I end up getting lost in there for
hours...
--
Mark Wieder
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit t
yeah I LOVE to play with video feedback!
On 10 February 2012 13:35, Mark Wieder wrote:
> haha...
>
> ever tried a Google search for recursion?
>
> --
> Mark Wieder
>
>
Stephen Barncard
San Francisco Ca. USA
more about sqb
___
use-livecode mailing lis
On Dec 23, 2010, at 9:59 AM, David Bovill wrote:
Peter, not shure if I got you right? Why not take:
word 1 to 3 of the long id of theObjectRef
Well, word 1 to 3 of theObjectRef gives:
field id 1072
since theObjectRef looks something like:
field id 1072 of group id 1052 of group id 1057 o
This might or might not relate - but, in case it helps...
You can get the long name of an object...
Then replace " of " with "|" or any other character you want to use as an
item delimiter
Then you can count the number of items, or use the first word of each item
to determine the type of object (
Peter, not shure if I got you right? Why not take:
word 1 to 3 of the long id of theObjectRef
In my case I need to check each level of the inheritance... if forgot that
using "pass" would get the same result in some cases (in mine I want to be
able to define getprop handlers anywhere in the hier
On Dec 23, 2010, at 6:34 AM, David Bovill wrote:
This one just caught me out. I have a script that checks a property
of it's
owner and returns the value. Specifically it checks the owner for a
property
of the same name to see when the local value is empty to see if it is
defined higher up in
47 matches
Mail list logo