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.
Why do you click on 100,10?
Hi ahk fan: this is a script I actually used for a task, in which I had to click on the 10,100 coordinates to refresh a website.
Thanks, used this and ImageMagick to “rip” a PDF from a Flash-Viewer.
Set a limit to loop, or find out how to quit the script before running it.
http://www.imagemagick.org/Usage/crop/#crop
mogrify -crop 1007×1427+14+43 *.png
convert *.png -page A4 -density 72×72 out.pdf