--- In [EMAIL PROTECTED], "swzoh" <[EMAIL PROTECTED]> wrote:
> --- "Hakki Alacakaptan" <[EMAIL PROTECTED]> wrote:
>
----------------------------------------------------------------------------
> > This produces an "endfor without preceding for" error:
> > ---------------------------------
> > local p = 0
> > 
> > for (n = 1; n < 6; n = (n + 1)+(p*6))
> >     p = validpath("g:\temp\fp00000.txt")
> >     window show "Save As"
> >     keys {fast}{to "Save As"}%n+{tab}{end}+{F10}{down 8}{en}
> >     wait active "Save Directory List"
> >     keys {fast}{to "Save Directory List"}{tab 2}%n
> >     clip textpaste g:\temp\fp00000.txt
> >     window show "Save Directory List"
> >     wait 0.5
> >     keys {fast}%d{tab 2}{sp}{tab}{en}
> > endfor
> > ---------------------------------
> >
> > If I comment out the "wait 0.5" the script runs (but the
> > keys aren't sent).
> 
> I didn't know that non-integer number could be allowed.
> Use "wait 0" (i.e., 1/3 sec) or "wait 1"
> 
> > Putting the delay in the key macro works OK:
> > keys {fast}{w0.5}%d{tab 2}{sp}{tab}{en}
> > Anyone know why?
> 
> PP may interpret as: "{w0.5} -> {w0}"
> since only single integer is allowed on {wn}.

I forgot to mention: "wait for 500"



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Yahoo! Domains - Claim yours for only $14.70
http://us.click.yahoo.com/Z1wmxD/DREIAA/yQLSAA/JV_rlB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/power-pro/

<*> To unsubscribe from this group, send an email to:
     [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
     http://docs.yahoo.com/info/terms/
 

Reply via email to