Automating Screenshots with AutoHotKey

This is a tiny little script that can be extremely useful.

1
2
3
4
5
6
7
8
9
10
loop
{
; /capture=0 takes a screenshot of the whole desktop
; /capture=1 takes a screenshot of the active window
; /capture=2 takes a screenshot of the client area of the active window
Run, "%A_ProgramFiles%\IrfanView\i_view32.exe" /capture=1 /convert=d:\screenshot\capture_$U(`%Y-`%m-`%d_`%H`%M`%S).png
sleep, 30000
leftclick, 100, 10
}
return

This script will
1. take a screenshot of your active window (capture=1),
2. save it on your D:\ drive,
3. wait for 30 secs (30,000 millis)
4. click at the (100,10) point of your screen
5. … it will start the loop again.

3 thoughts on “Automating Screenshots with AutoHotKey

Comments are closed.