Jump to content

Recommended Posts

I am trying to develop a script to autodownload pdf files from a set of URLs using DownthemAll.

The steps are:

1-Go to the URL of interest

2- Auto start DownthemAll

2a- Wait for the webpage to load.

2b- Right click at the appropriate position where pdf files are located.

2c- Choose DownthemAll from the context menu by clicking "n".

3- Auto browse the destination folder

3a-Click the folder icon within DownthemAll window

3b-Browse for the appropriate destination folder.

4- Go to the next URL and the cycle repeats.

The problems I am facing are:

For every download:

1- Wait for the webpage to load.

2- Change the URL to the next one. Luckily, the URLs change only in numbers

for example: www.site.com/v1/n1

the next one www.site.com/v1/n2

and so on...

2-Change the destination folder for every URL.

So, two variables are URL and destination folder.

Here is incomplete code:

ShellExecute ( "URL")
WinWaitActive ("Browser window title")
MouseClick ("right", 706,  661)
Send ("n")
WinWaitActive ( "DownThemAll! - Make Your Selection")

Pls help me complete the code I think it will be a useful utility for everyone else as well.

Here is the DownthemAll window


Edited by subzerocode
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
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...