--- "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}.
------------------------ Yahoo! Groups Sponsor --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/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/