Jump to content

Capturing screenshots while computer is locked


Recommended Posts

Hi again guys

I prefer to keep my Windows computer in lock mode for security reasons, instead of blocking inputs. I have an idea for a solution and would appreciate your guidance to help me get started. I will handle the coding aspect of it myself.

I would like to schedule a full desktop screenshot of my computer while it is locked and have it sent to my email every n minutes. However, the _ScreenCapture_CaptureWnd_mod() function only works when a window handler is provided. I would like to take a screenshot of the entire desktop to ensure that any pop-up windows from any application are captured.

To achieve that, I have these steps in mind:

  1. Find a list of all open and active windows, excluding minimized or hidden. [I can achieve this.]
  2. Sort them based on z-order, from back to front window. [I can achieve this.]
  3. In a loop, send each window handler to the _ScreenCapture_CaptureWnd_mod() function, but store each image in memory. [I need guidance here.]
  4. Mix each image based on their back-to-front order and their positions in memory, and save the result in a file. [I need guidance here.]

What do you think, guys?

FYI: I'm familiar with Python too!

Cheers

IgImAx

Teach Others to learn more yourself

My eBooks and Articles in Persian: IgImAx Home! * and more here

Link to comment
Share on other sites

2 hours ago, IgImAx said:

I would like to take a screenshot of the entire desktop

 

#include <ScreenCapture.au3>

_shot()

Func _shot()
    Local $hWnd = WinGetHandle("[TITLE:Program Manager; CLASS:Progman]")
    _ScreenCapture_CaptureWnd(@ScriptDir & "\full_Image.jpg", $hWnd)
    ShellExecute(@ScriptDir & "\full_Image.jpg")
EndFunc   ;==>_shot

 

Edited by ioa747

I know that I know nothing

Link to comment
Share on other sites

Hi guys

@ioa747

Thanks for your suggestion, but I already tried that! It only takes a screenshot of the desktop background and not the elements in it.

 

@Nine

Sure, I will complete those steps when I have time and then update you.

 

Thanks again & Happy Coding

IgImAx

Edited by IgImAx
improving

Teach Others to learn more yourself

My eBooks and Articles in Persian: IgImAx Home! * and more here

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...