Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

batch opening a webpage and screenshot it after 10 seconds

I'm trying to create a batch where I open firefox, wait for 10 seconds so the web page is loaded and finally i take a full screenshot.

i tried "firefox www.google" and I know there is an option "screenshot --full page" but i cant make it work altogether.

My main target is clicking in a batch and getting a screenshot of several web pages. And if its possible, wait 10 seconds after opening the web page so it's loaded properly.

thanks

This is what i tried without even trying the 10 seconds delay, but it doesn't work :

firefox www.google.uk & firefox --screenshot
like image 818
tuxero Avatar asked Dec 08 '25 18:12

tuxero


1 Answers

What about this batch script ?

@echo off
Title Take a screenshot with snippingtool by Hackoo 2018
start /min "" firefox.exe "https://stackoverflow.com/questions/50029056/batch-opening-a-webpage-and-screenshot-it-after-10-seconds"
Timeout /T 10 /nobreak>nul
Start /Wait snippingtool /clip
Start /Max mspaint
like image 157
Hackoo Avatar answered Dec 11 '25 08:12

Hackoo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!