Page 1 of 1
save web page every 5 minutes
Posted: 21 Mar 2017, 20:29
by monomedic
I am trying to save a web page for every five minutes - its in a iframe grid widget - i can manually select all and paste but would rather have autokey do it
im using the urldownloadtofile - but cant figure out how to set up time interval - and changing the name of file each time - as well it must run between 930 - 400pm
Re: save web page every 5 minutes
Posted: 22 Mar 2017, 12:23
by Rohwedder
Hallo,
try this:
Code: Select all
#SingleInstance, Force
#Persistent
SetTimer, Make, 1000
Return
Make:
Formattime, Time, %A_now%, HHmm
If ((Time < "0930") Or (Time > "1600"))
Return
StringRight, Minute, Time, 1
If ((Minute <> "0") And (Minute <> "5"))
Return
If (Time <> LastTime)
{
LastTime := Time
UrlDownloadToFile, https://uhr.ptb.de/, %Time%.htm
}
Return
Re: save web page every 5 minutes
Posted: 23 Mar 2017, 10:59
by monomedic
thank you will try it out
Re: save web page every 5 minutes
Posted: 24 Mar 2017, 17:02
by monomedic
have just run thru a day of data - it works great pulling the the data- its constatntly changing thru out the day but the data pulled for each time frame was the same as the first - is there a way to refresh the website so it reads a new data
Re: save web page every 5 minutes
Posted: 25 Mar 2017, 09:14
by Rohwedder
Hallo,
I found an error, it must be:
instead of
However, a way to refresh the website, sorry, no idea!
Re: save web page every 5 minutes
Posted: 25 Mar 2017, 09:22
by smorgasbord
F5