If I set the transparency with WinSetTrans, screenshot can't be made.
This is Windows 7 related.
Win 10 works fine
Run the attached file
#include <ScreenCapture.au3>
;GUI1
$gui1 = GUICreate("gui1", 200, 200, 200, 200)
GUICtrlCreateLabel("GUI 1 LABEL", 50, 50 )
GUISetState()
;GUI 2 with transparency is completely ignored by _ScreenCapture_Capture
$gui2 = GUICreate("gui1", 200, 200, 200, 200, -1, -1, $gui1)
GUICtrlCreateLabel("GUI 2 LABEL", 100, 100 )
GUISetState()
WinSetTrans($gui2, "", 150)
Sleep(2000)
_ScreenCapture_Capture(@MyDocumentsDir & "\GDIPlus_Image1.jpg", 200, 200, 405, 410)
ShellExecute(@MyDocumentsDir & "\GDIPlus_Image1.jpg")
As you can see, the semi transparent window will not be visible in the screenshot.
I noticed that a couple of screen recording tools are acting the same. (But there are those that do work)
I tried different ways on getting the screenshot and none worked.
Printscreen does work.
Is there a way to solve this without using Printscreen?
ScreenCaptureProblem.au3