Page 1 of 1

If ONDOWNLOAD does not use given FOLDER or FILE

Posted: Wed Feb 27, 2008 9:06 am
by Hannes, Tech Support
Especially when running subsequent macros via the scripting interface, you may find that ONDOWNLOAD seems to ignore its FOLDER or FILE parameters given in e.g.

Code: Select all

ONDOWNLOAD FOLDER=c:\myDir FILE=myfile
The reason often is that the download-dialog does not prevent the macro/script from continuing. So it can happen that
  • 1) The macro stops before the download is initiated (e.g. if the website needs some time to start transferring the file)

    2) A second macro is started before the download is initiated, which resets FOLDER and FILE to the default values
In both cases, adding a simple WAIT statement right after the command that initiates the download (e.g. a TAG command) will keep the macro from continuing/stopping before the download is handled correctly.

Re: If ONDOWNLOAD does not use given FOLDER or FILE

Posted: Wed Dec 10, 2008 2:52 pm
by doug
I tryied two different approaches and both failed. What can be happened? It used to work fine in the previous edition

ONDOWNLOAD FOLDER=c:\myDir FILE=myfile WAIT=YES

ONDOWNLOAD FOLDER=c:\myDir FILE=myfile
WAIT SECONDS = 20

Re: If ONDOWNLOAD does not use given FOLDER or FILE

Posted: Wed Dec 10, 2008 3:12 pm
by Hannes, Tech Support
Can you post a test macro that shows this behaviour?