gseller Posted July 6, 2008 Share Posted July 6, 2008 I have a webserver setup at work and rely on some various spreadsheets located on other intranet sites. I have there downloaders activate when windows opens and download the newest file to my server. One day I would like to change the code to look to see if the file has been changed and only download if it has but this will do for now. Here is my spin on Partypoopers INETDownloader found here: http://www.autoitscript.com/forum/index.ph...=73497&st=0You need to download Partypoopers UDF INetDownloader.au3 Then here is a timed downloader example...After downloading the UDF Above, download this into the same folder. Timed Downloader.au3~or~#cs ---------------------------------------------------------------------------- AutoIt Version: 3.2.13.3 (beta) Author: Partypooper & Partial code gseller Script Function: Format for the UDF is as follows: #include <INetDownloader.au3> Func _INetDownloader( Web Site, Remote Filename [, Local Filename [, Download Directory [, AutoOverwrite]]] ) #ce ---------------------------------------------------------------------------- #include <INetDownloader.au3> Global $s_MyWebSite = "[url="http://members.optusnet.com.au/partypooper"]http://members.optusnet.com.au/partypooper[/url]"; authors web address Sleep (900000) ; 15 minute timer 1=60000, 2=120000 ,3=180000 ,5=300000 ,10=600000 ,15=900000 ,20=1200000 Call ('OnDownloadFile') ;OnDownloadFile() Func OnDownloadFile() _INetDownloader($s_MyWebSite, "In-Game Timing Utility.exe", -1, @ScriptDir) EndFunc;==>OnDownloadFile Link to comment Share on other sites More sharing options...
James Posted July 6, 2008 Share Posted July 6, 2008 Why are you using Call()? Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
gseller Posted July 7, 2008 Author Share Posted July 7, 2008 For Grins & Giggles.. LOL Not really sure, just slung it in there. Ya could just as easily put the function. muttley Link to comment Share on other sites More sharing options...
James Posted July 7, 2008 Share Posted July 7, 2008 Haha, some people *rolls eyes* muttley Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now