Modify

#1991 closed Bug (Wont Fix)

Include CAPTUREBLT flag in _ScreenCapture_Capture

Reported by: Chess Owned by:
Milestone: Component: Standard UDFs
Version: 3.3.6.1 Severity: None
Keywords: Cc:

Description

In order to capture the layered windows when capturing the desktop. The flag CAPTUREBLT should be included:

Old code

Global Const $__SCREENCAPTURECONSTANT_SRCCOPY = 0x00CC0020
...
_WinAPI_BitBlt( ... , $__SCREENCAPTURECONSTANT_SRCCOPY)

New code:

_WinAPI_BitBlt( ... , BitOR($SRCCOPY, $CAPTUREBLT))

NOTE: The constants are already listed in WinAPI.au3 so there is no need to hardcode another one...

Attachments (2)

ScreenCaptureV2.au3 (9.8 KB ) - added by Chess on Oct 25, 2011 at 6:59:08 PM.
New include file containing fixes for _ScreenCapture_Capture and _ScreenCapture_CaptureWnd functions
ScreenCaptureV2.2.au3 (9.9 KB ) - added by Chess on Nov 3, 2011 at 4:28:18 PM.
Update for _ScreenCapture_CaptureV2 _ScreenCapture_CaptureWndV2 Added optional parameter $iBitBltFlag - Flag to pass to the _WinAPI_BitBlt operation default it BitOR($SRCCOPY, $CAPTUREBLT) instead of $SRCCOPY only Tested with AutoIT 3.3.6.1 Fix over previous version with gross error where $SRCCPY was used instead of $iBitBltFlag

Download all attachments as: .zip

Change History (7)

comment:1 by Pinault <pszczepa@…>, on Aug 3, 2011 at 10:36:41 AM

Actually, the right fix would be to let the user choose whether he wants to use this flag or not. So the best would be to add one more parameter to the _ScreenCapture_Capture function (and the _ScreenCapture_CaptureWnd one as well).
Thanks.

comment:2 by anonymous, on Aug 4, 2011 at 7:47:07 PM

It's Great work!

by Chess, on Oct 25, 2011 at 6:59:08 PM

Attachment: ScreenCaptureV2.au3 added

New include file containing fixes for _ScreenCapture_Capture and _ScreenCapture_CaptureWnd functions

by Chess, on Nov 3, 2011 at 4:28:18 PM

Attachment: ScreenCaptureV2.2.au3 added

Update for _ScreenCapture_CaptureV2 _ScreenCapture_CaptureWndV2 Added optional parameter $iBitBltFlag - Flag to pass to the _WinAPI_BitBlt operation default it BitOR($SRCCOPY, $CAPTUREBLT) instead of $SRCCOPY only Tested with AutoIT 3.3.6.1 Fix over previous version with gross error where $SRCCPY was used instead of $iBitBltFlag

comment:3 by trancexx, on May 23, 2012 at 4:08:31 PM

Component: AutoItStandard UDFs

comment:5 by guinness, on Jul 19, 2013 at 5:18:02 PM

Resolution: Wont Fix
Status: newclosed

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.