Noob question, apologies in advance if it's stupid.
I want to:
1) Call up Chrome once every ten minutes
Chrome will auto-load the relevant web page
2) Screenshot the page - ie, Alt-PrintScreen or similar
3) paste the result into a file and save it to a particular location
4) Close Chrome again
If it helps, I can get an extension for Chrome that will do (2) & (3) in response to a particular keystroke
Is it possible to use AH to do this on a ten minute schedule?
Thanks
Mike
Timed screenshot in Chrome
-
- Posts: 2
- Joined: 17 Jan 2018, 05:51
- Blackholyman
- Posts: 1293
- Joined: 29 Sep 2013, 22:57
- Location: Denmark
- Contact:
Re: Timed screenshot in Chrome
yeah sure.
on a side note: if you tell us more about what you are using this for or your end goal, we may be able do help with better or simpler ways of doing the same thing!
on a side note: if you tell us more about what you are using this for or your end goal, we may be able do help with better or simpler ways of doing the same thing!
Courses on AutoHotkey
My Autohotkey Blog
Re: Timed screenshot in Chrome
Code: Select all
#Persistent
SetTimer, Monitoring,% 1000 * 60 * 10 ; check every ten minutes
Return
Monitoring:
FormatTime, Date,, yyyy-MM-dd_hh:mm
UrlDownloadToFile, http://www.nytimes.com, % "NYT_" . Date . ".html"
Return
-
- Posts: 2
- Joined: 17 Jan 2018, 05:51
Re: Timed screenshot in Chrome
Thanks guys. The task here is that we have a very complicated web page that we want to display on a screen on the wall. We don't want to dedicate an entire PC to driving it, that's massive overkill. So we put in a Raspberry Pi and pointed it at the web page, but the page is too complex and the internet link too slow, and it has been hideously unreliable. So the plan is to have one of our off-site servers call up Chrome and take a snapshot of the web page every 10 mins or so, save it as an image, and just have the R-Pi load a simple page which is an HTML header which embeds the graphic image of the original page. I'm not sure how big the graphic will be, but nowhere near as big or complex as the megabytes of the original. Creation of the HTML is a doddle, but the timed automation of the screen grab is looking like the tricky bit.
Who is online
Users browsing this forum: doodles333, mikeyww and 301 guests