Jump to content
jimg

Waiting after SAVEAS operation

Recommended Posts

jimg

I have a script that is bulk downloading a large number of webpages, and each one is fairly complex and my sluggish internet connection can take quite awhile.

I'm simply using  _ienavigate to get to the next webpage, then SENDing a ^s to the browser, which saves everything I need.  I then have to shuttle the various files of to other locations.  I haven't figured out how to determine when the save_as command has finished, as the progress bar doesn't appear to be detectable.  I have many thousands of pages to do, and SLEEPing the worst case time wouldn't work.

Share this post


Link to post
Share on other sites
jimg

I found that the "Save Webpage" window appears in WindowSpy, so maybe I can check for it to go away?

Share this post


Link to post
Share on other sites
jimg

Took awhile to make it work, as there's apparently a short window between the existence of the SaveAs dialog box and the progress bar (both called Save Webpage).  I think it's working.

Share this post


Link to post
Share on other sites
jimg

That doesn't work...

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×