Screenshots of inactive window

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
mrxindowntown
Posts: 2
Joined: 22 Nov 2013 03:32

Screenshots of inactive window

#1 Post by mrxindowntown » 22 Nov 2013 03:39

Is it possible to automatically take a screenshot of a specific window (even when it's not active/visible) every 5 mins or so and then save to a pre-defined location with a unique filename e.g. 2013_11_12_10:15_LoggedInUser_sometext_1?

I know most of it is possible except for the "take a screenshot of a specific window (even when it's not active/visible)" part.

Squashman
Expert
Posts: 4486
Joined: 23 Dec 2011 13:59

Re: Screenshots of inactive window

#2 Post by Squashman » 22 Nov 2013 07:42

Not with Batch.
You would need to do it with some other 3rd party utility. Take a look at AutoHotKey or AutoIt.

mrxindowntown
Posts: 2
Joined: 22 Nov 2013 03:32

Re: Screenshots of inactive window

#3 Post by mrxindowntown » 22 Nov 2013 07:47

Squashman wrote:Not with Batch.
You would need to do it with some other 3rd party utility. Take a look at AutoHotKey or AutoIt.


That's only for the automating part though right. How about actually taking a screenshot of an invisible window though. That's the portion that I haven't been able to figure out.

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: Screenshots of inactive window

#4 Post by foxidrive » 22 Nov 2013 08:18

Why do you need to screengrab hidden windows? It sounds a bit like you are spying on someone using a computer.

Squashman
Expert
Posts: 4486
Joined: 23 Dec 2011 13:59

Re: Screenshots of inactive window

#5 Post by Squashman » 22 Nov 2013 08:56

mrxindowntown wrote:
Squashman wrote:Not with Batch.
You would need to do it with some other 3rd party utility. Take a look at AutoHotKey or AutoIt.


That's only for the automating part though right. How about actually taking a screenshot of an invisible window though. That's the portion that I haven't been able to figure out.

Your thought process is completely backwards. Batch files are great for automation. Not so great with working with other programs that use GUI's.

shayanjameel08
Posts: 10
Joined: 21 Nov 2013 01:07

Re: Screenshots of inactive window

#6 Post by shayanjameel08 » 23 Nov 2013 05:35

Taking a screen shot of a window using Delphi code is rather easy.
A screen shot (screen capture) is a copy of the screen's contents that can be saved as a graphics file or displayed in a graphics "aware" control...

Post Reply