Modify

Opened 16 years ago

Closed 16 years ago

#1614 closed Bug (Fixed)

_ScreenCapture_CaptureWnd(): Ignoring that Right and Bottom are Bounding coordinates.

Reported by: anonymous Owned by: J-Paul Mesnage
Milestone: 3.3.7.0 Component: AutoIt
Version: 3.3.6.1 Severity: None
Keywords: _ScreenCapture_CaptureWnd Cc:

Description

Effect: Allows capture range to be one pixel to big on right and bottom sides.
Suggestion fix. (File: ScreenCapture.au3)
First part is for auto capture case.
Second part is for none auto capture case. (specific coordinate input on right/bottom parm.)

128,129c128,129
< 	If $iRight = -1 Then $iRight = DllStructGetData($tRect, "Right") - DllStructGetData($tRect, "Left")
< 	If $iBottom = -1 Then $iBottom = DllStructGetData($tRect, "Bottom") - DllStructGetData($tRect, "Top")
---
> 	If $iRight = -1 Then $iRight = DllStructGetData($tRect, "Right") - DllStructGetData($tRect, "Left") - 1
> 	If $iBottom = -1 Then $iBottom = DllStructGetData($tRect, "Bottom") - DllStructGetData($tRect, "Top") - 1
134,135c134,135
< 	If $iRight > DllStructGetData($tRect, "Right") Then $iRight = DllStructGetData($tRect, "Right")
< 	If $iBottom > DllStructGetData($tRect, "Bottom") Then $iBottom = DllStructGetData($tRect, "Bottom")
---
> 	If $iRight >= DllStructGetData($tRect, "Right") Then $iRight = DllStructGetData($tRect, "Right") -1
> 	If $iBottom >= DllStructGetData($tRect, "Bottom") Then $iBottom = DllStructGetData($tRect, "Bottom") -1

Attachments (0)

Change History (2)

in reply to:  description comment:1 by anonymous, 16 years ago

O yea. XpProSp3 + Classic theme.

$hWnd = GUICreate('GUICreate')
GUISetState(@SW_SHOW)
_ScreenCapture_CaptureWnd(@ScriptDir & '\'& 'GuiScreenShot.png', $hWnd , 0 , 0 , -1 , -1 , True)
;~ Do
;~ Until GUIGetMsg() = -3
GUIDelete($hWnd)

Screen shot as additional line at right and bottom borders.

comment:2 by J-Paul Mesnage, 16 years ago

Milestone: 3.3.7.0
Owner: set to J-Paul Mesnage
Resolution: Fixed
Status: newclosed

Fixed by revision [5806] in version: 3.3.7.0

Modify Ticket

Action
as closed The owner will remain J-Paul Mesnage.

Add Comment


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