This still doesn't do it. It appears to because you're running on a single
example. However, if you try this:
execute_later=: 500&$: : (dyad define)
wd 'timer ',":x
sys_timer_z_ =: 3 : ('". y';'wd '' timer 0 '' ') @: (y"_)
empty ''
)
vm=: 3 : 0
'flnm mat'=. y.
viewmat mat
execute_later ' savemat_jviewmat_ jpath ''',flnm,''''
)
showsome=: 3 : 0
td=. 'C:\Temp\'
vm (td,'fl0.bmp');i. 16 16
vm (td,'fl1.bmp');2 o. 16%~i. 16 16
vm (td,'fl2.bmp');%:+/\i. 16 16
)
showsome ''
you only get the file saved for "fl2.bmp" because that's what's on top when
you return to immediate execution and the timer pops.
I've tried a lot of variations on the timer idea already and have not gotten
it to work. The image3 libraries work well - too bad you're forced to get
them through the addons which doesn't always work when you're behind a
company firewall.
On Mon, Dec 15, 2008 at 10:01 PM, Dan Bron <[email protected]> wrote:
> Thanks to Tracy Harms, I realize the problem is probably that my verb vm
> is trying to return a verb (sys_timer). I don't know
> why this didn't cause a problem for me. Anyway, a better definition would
> be:
>
> require 'viewmat'
>
> execute_later =: 500&$: : (dyad define)
> wd 'timer ',":x
> sys_timer_z_ =: 3 : ('". y';'wd '' timer 0 '' ') @: (y"_)
> empty ''
> )
>
>
> vm =: verb define
> viewmat i. 16 16
> execute_later ' savemat_jviewmat_ jpath
> ''~temp\immex0.bmp'' '
> )
>
>
> vm ''
>
> Does that work for everyone?
>
> -Dan
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
--
Devon McCormick, CFA
^me^ at acm.
org is my
preferred e-mail
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm