Modify

Opened 15 years ago

Closed 15 years ago

#1614 closed Bug (Fixed)

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

Reported by: anonymous Owned by: Jpm
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)

comment:1 in reply to: ↑ description Changed 15 years ago by anonymous

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 Changed 15 years ago by Jpm

  • Milestone set to 3.3.7.0
  • Owner set to Jpm
  • Resolution set to Fixed
  • Status changed from new to closed

Fixed by revision [5806] in version: 3.3.7.0

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as closed The owner will remain Jpm.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.