I sent this yesterday but it seems it didn't get posted:
----------------------------------------------------------------------------
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).
Putting the delay in the key macro works OK:
keys {fast}{w0.5}%d{tab 2}{sp}{tab}{en}
Anyone know why?

The above is for invoking the rjh Extensions Save Directory List dialog from
the context menu to save the working directory of a save dialog. If there's
a way to make a DLL call to the save dialog to get the working directory I'd
love to know.




------------------------ 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