save web page every 5 minutes

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
monomedic
Posts: 3
Joined: 21 Mar 2017, 20:14

save web page every 5 minutes

21 Mar 2017, 20:29

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
Rohwedder
Posts: 7719
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: save web page every 5 minutes

22 Mar 2017, 12:23

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
Last edited by Rohwedder on 26 Mar 2017, 07:40, edited 1 time in total.
monomedic
Posts: 3
Joined: 21 Mar 2017, 20:14

Re: save web page every 5 minutes

23 Mar 2017, 10:59

thank you will try it out
monomedic
Posts: 3
Joined: 21 Mar 2017, 20:14

Re: save web page every 5 minutes

24 Mar 2017, 17:02

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
Rohwedder
Posts: 7719
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: save web page every 5 minutes

25 Mar 2017, 09:14

Hallo,
I found an error, it must be:

Code: Select all

LastTime := Time
instead of

Code: Select all

LastTime = Time
However, a way to refresh the website, sorry, no idea!
User avatar
smorgasbord
Posts: 493
Joined: 30 Sep 2013, 09:34

Re: save web page every 5 minutes

25 Mar 2017, 09:22

F5
John ... you working ?

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], sachalamp, Spawnova and 208 guests