How to automatically start a downloader every few minutes?
Updated on 2011-03-01 04:10:04
To do this, you must create a global script.
- Select "Tools" then "Script Editor".
- Click "File" then "New"
- Type the script name then click on "OK".
- Type the following script:
string downloader = "daily stock quotes";
int minutes = 20;
App.Main.Sleep(1000 * 60 * minutes);
- Set the "downloader" variable to the item name and the "minutes" variable to the number of minutes to wait between requests.
You can add the script to the bookmark panel so you can quickly start and stop it.
Selecting "Settings" in the menu, then click on "Add current script to bookmark panel".
Note that if your downloader is stored under a category, then you will have to change the line:
Downloader.StartDownloader("category name", downloader);