Hi Eric, I just thought I would mention that there is a JQT timer demo under "help" "studio" "JQT demos" menus. Also, in my FVJ4 addon there is an example in
load '~addons/graphics/fvj4/vlife.ijs' You can see the form in use with "file" "random" and then the start button. The script is rather involved but the key places can be found with a search on "msgs" and "ptimer" Reading the script may be daunting, but the key first step is to be aware that I use a 3-D array LAe which is a 9 by n by n array to represent (redundantly) the array of states of the game of life. Best, Cliff On Sun, Jan 3, 2021 at 11:23 AM Jan-Pieter Jacobs < [email protected]> wrote: > Hi Eric, > > If you're problem is when using JQT, you should use > > wd'msgs' > > in order to force the GUI to update after writing output to the terminal to > show the output you just emitted. > As far as I understand, it is done so for performance reasons, as updating > the GUI would make your loop slower. But since you are purposefully > inserting delays, I guess this wouldn't bother you :). > It's sort of hard to discover (I don't know why), but I think this solves > your problem. > > Best regards, > > Jan-Pieter. > > Op zo 3 jan. 2021 om 00:22 schreef Don Guinn <[email protected]>: > > > You might look at (WD 'timer milliseconds'). It will delay without > locking > > your app. > > > > On Sat, Jan 2, 2021, 3:53 PM cilz <[email protected]> wrote: > > > > > Thanks Devon, > > > > > > Though, at first look, it's really very far away from my current J > > > knowledge :-) > > > > > > Best, Eric > > > > > > Le 02/01/2021 à 23:47, Devon McCormick a écrit : > > > > To be a little more helpful, perhaps something like a mutex > (file-lock) > > > is > > > > what you're looking for: > > > > https://code.jsoftware.com/wiki/User:Devon_McCormick/mutex.ijs . > > > > It does use a while loop though that might be improved by putting in > a > > > > randomly-variable wait time. > > > ---------------------------------------------------------------------- > > > For information about J forums see http://www.jsoftware.com/forums.htm > > > > > ---------------------------------------------------------------------- > > For information about J forums see http://www.jsoftware.com/forums.htm > > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
