Site icon Brian Prom Blog

Automate Website Screenshots – AutoHotKey and FireShot

I like to keep a snapshot of websites on a daily basis for various reasons.  FireShot certainly is one of the best plugins for accomplishing screenshots, but it doesn’t have an automated method inherently built into it.  So that’s where AutoHotkey comes into play.  AutoHotkey allows you to automate some remedial tasks in Windows.

Use FireShot in Chrome with AutoHotkey to automate screenshots. The scripts can then be automated with Windows Task Scheduler.

Install Software

First thing is first, for this tutorial you’ll need a Windows based machine with Chrome installed.  Also install AutoHotkey and FireShot.  I’m not going to go into detail on how to get there.

Configure Keyboard Shortcut in Chrome for FireShot

The next step is getting Chrome to be able to run FireShot within Chrome via a keyboard shortcut.  This is where I ran into the biggest issue – FireShot does allow for setting keyboard shortcuts to various functions via their options.  And I was using this in AutoHotkey for the longest time, and then it stopped working and I haven’t fully figured out why.  But even using the keyboard shortcut outside of the automation at times seems to not work the best…  That’s the reason for using the API like this method suggests.

Create Custom Search Engine

Create Bookmarklet (Optional)

This really isn’t needed for the automation piece, but if you’d like you could create a bookmarklet in Chrome with the same block of code above.  This way you can click one button to trigger something different if you’d like.

FireShot API Options (Optional)

There are a few customizations you can make to the code above.

File Naming Options

The file name that the image saves as can be customized in the Chrome extension directly.  Click on the icon in Chrome and choose Miscellaneous -> Options.  Then under Editor options click Click to setup….  Choose Capturing and in here you can setup the file name pattern.

AutoHotkey Script

Now that you have FireShot all setup, it’s time to write an AutoHotkey script that will trigger this.  You can use any text editor (Notepad, Notepad++, etc.) to create this.

Schedule The Script To Run

Now we can use the Windows Scheduler to run this script moving forward.

Exit mobile version