Jump to content
Macro Express Forums

Best Solution To Detect Download Is Finished.


Recommended Posts

I am working in a loop downloading one file after the other, but am not sure of the best way to detect the completion of the download so the next one can start.


I go thru all the motions of waiting for the File Download window, then do alt s , and alt s then download begins and a box is showing with a window named same as file name being downloaded...

Then in last 20 seconds a small window by the name of Copying... pops up.

Is there a way to wait for the window named 'Copying..." to close, that would be a good clue that the download is done...


I see the commands to wait for a window with a specific name, but is there a way to wait for the window named "Copying to close.... like "not" window...


Like wait for window "Copying..." to appear and as soon as it does, go to the next step and some how wait for 'Copying... window "NOT" please help... with this.


Or is there something better to monitor so I can restart the next download process... with my loop.




Link to comment
Share on other sites

Two ideas:

Variable Set String %T1% ""
Repeat Until %T1% = "DONE"
 If Not Window Title "Copying ..." running
   Variable Set String %T1% "DONE"
   Wait Time Delay 0.5 Seconds
 End If
Repeat End

If you know the name of the file(s) you are downloading you can use another option that doesn't rely on the user interface:

Wait for File Exist: "file1.exe"
Wait for File Ready: "file1.exe"

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...