3

I would like to capture a screenshot of the monitor or a window, preferably using AutoIt (I am open to using any convenient method). The method needs to be able to function while the workstation is locked, due to the program being run overnight.

I cannot simply put code to unlock the workstation, as it poses a security risk. Current behavior: _ScreenCapture_SaveImage() saves a blank screen with only the mouse showing.

user4157124
  • 2,809
  • 13
  • 27
  • 42
user2531887
  • 57
  • 1
  • 5
  • http://stackoverflow.com/questions/3474805/take-screenshot-of-desktop-when-windows-is-locked-winl – marc_s Jun 29 '15 at 03:40

1 Answers1

0

Try using captdll.dll to capture fullscreen or a program window.

$LogFilePath = "C:\Temp"
$TimeStamp = @YEAR & @MON & @MDAY & @HOUR & @MIN & @SEC

; Capture full screen
; Fist parameter - filename, last - jpeg quality.
$erg = DllCall("captdll.dll", "int:cdecl", "CaptureScreen", "str", $LogFilePath & "\Ce2eC_" & $TimeStamp & ".JPG", "int", 75)
Milos
  • 2,927
  • 1
  • 15
  • 27