Hacker News new | ask | show | jobs
by aargh_aargh 3171 days ago
I imagine this will be useful for taking screenshots of arbitrary elements via the headless mode.

Anyway, why would it be harder to take screenshots in Windows? Have they restricted the Win32 API recently (I haven't kept tabs)?

2 comments

I think he is referring to how on windows you can only screenshot the entire screen. Not sure if that has changed in recent years.
You can also screenshot the current window (Alt-PrtSc).

Since Vista, there is also snipping tool, which allows the same things as Mac screenshoting.

Win-Shift-S to select a rectangular area to capture
You can totally screenshot anything anyway you like on windows. The only difference is that windows has separate utility for this instead of a shortkey
this is the only thing preventing CasperJS / PhantomCSS from supporting Puppeteer, I think. will be cool to see this go in.