Page 1 of 1

Grab screenshoot of specific window on Windows OS

Posted: 2018-04-18T07:41:27-07:00
by zephirus
Hi,

I need to get a screenshoot of a specific window inside a software. This in on Windows OS. I need to use the command line because I will be integrating this in automatic tests.

How can I do it? After some research the only thing I found was for Linux, not Windows.

Is this even possible in Windows OS?

Thank you.

Re: Grab screenshoot of specific window on Windows OS

Posted: 2018-04-18T07:51:20-07:00
by snibgo
IM can capture the entire screen:

Code: Select all

magick screenshot: s.png
IrfanView is more flexible, and can capture the entire screen or just the foreground window or some other opions, but not any named window.

Re: Grab screenshoot of specific window on Windows OS

Posted: 2018-04-18T08:30:01-07:00
by zephirus
snibgo wrote: 2018-04-18T07:51:20-07:00 IM can capture the entire screen:

Code: Select all

magick screenshot: s.png
IrfanView is more flexible, and can capture the entire screen or just the foreground window or some other opions, but not any named window.
Thank you for your help. Does it work with command line?

Re: Grab screenshoot of specific window on Windows OS

Posted: 2018-04-18T08:40:50-07:00
by snibgo
Yes.