topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • April 22, 2019, 11:05 PM
  • Proudly celebrating 13 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Grab windows object misfit  (Read 435 times)

Chris Douce

  • Supporting Member
  • Joined in 2019
  • **
  • default avatar
  • Posts: 6
    • View Profile
    • Donate to Member
Grab windows object misfit
« on: April 17, 2019, 02:30 AM »
Hi all,

When I try to capture a windows object (fe form), the red rectangle around the object is bigger than the actual object.
The resulting capture also.
Other screen captoring tools do not have this problem (fe Snipping tool).
To be able to use screenshot captor, I now take the screenshot in Snipping Tool and save the file.
I then open it in Screenshot Captor to edit.
I am using Windows 10

Is this a known issue?
Thanks

Chris

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 39,218
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Grab windows object misfit
« Reply #1 on: April 17, 2019, 05:50 AM »
Can you make sure you are using the latest version of SC and then give me some more details about how the resulting capture is too big?

Chris Douce

  • Supporting Member
  • Joined in 2019
  • **
  • default avatar
  • Posts: 6
    • View Profile
    • Donate to Member
Re: Grab windows object misfit
« Reply #2 on: April 17, 2019, 12:06 PM »
Hi,

Thanks for the reply.
Attached you'll find 2 images.
One from screenshotcaptor. The other from snipping tool.
You can see that around the screenshotcaptor image, there is a border of the underlaying screen.

same window with snipping tool.PNGGrab windows object misfit

Chris

Chris Douce

  • Supporting Member
  • Joined in 2019
  • **
  • default avatar
  • Posts: 6
    • View Profile
    • Donate to Member
Re: Grab windows object misfit
« Reply #3 on: April 17, 2019, 12:08 PM »
Additional info:

I use V4.31.2

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 39,218
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Grab windows object misfit
« Reply #4 on: April 17, 2019, 12:30 PM »
Ok, sounds like I might need to look into whether on Windows 10 I need to adjust for the border size of windows..
If you capture a smaller object than a window, like a button or a text box, the size seems correct?

Chris Douce

  • Supporting Member
  • Joined in 2019
  • **
  • default avatar
  • Posts: 6
    • View Profile
    • Donate to Member
Re: Grab windows object misfit
« Reply #5 on: April 17, 2019, 01:59 PM »
I cannot select a button or textbox with Snipping tool.
So, I installed Picpick to grab a button.
And the both button are exactly the same size. 123 x 203

Now I tested again on a form and the resulting sizes of the PNG files are different
Screenshot: 1047 x 777 ( one can clearly see the extra border)
picpick: 1027 x 770

See attached files

thx

Chris

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 39,218
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Grab windows object misfit
« Reply #6 on: April 17, 2019, 03:38 PM »
Ok that's helpful -- I'll see if I can't fix this. I seem to remember windows api providing information about window border size based on the theme -- I think that might be the solution.

I thought of another question.  If you select that window and use the ACTIVE WINDOW CAPTURE mode instead of the red box object mode, what does the capture look like in that case?

Chris Douce

  • Supporting Member
  • Joined in 2019
  • **
  • default avatar
  • Posts: 6
    • View Profile
    • Donate to Member
Re: Grab windows object misfit
« Reply #7 on: April 18, 2019, 01:24 AM »
Thanks for the reply.

Using the active window grab works fine. The size of the capture is OK
Perhaps, this may be part of the solution to determine the size of the object



mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 39,218
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Grab windows object misfit
« Reply #8 on: April 18, 2019, 12:32 PM »
Yes, I was hoping that would be the case.  Should make it fairly easy for me to do a fix for the red box object capture of window forms.
Thanks for your help tracking down the problem -- I should have an update in the next few days.  :up:

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 39,218
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Grab windows object misfit
« Reply #9 on: April 18, 2019, 03:12 PM »

Chris Douce

  • Supporting Member
  • Joined in 2019
  • **
  • default avatar
  • Posts: 6
    • View Profile
    • Donate to Member
Re: Grab windows object misfit
« Reply #10 on: April 19, 2019, 01:27 AM »
Yes, this one works fine.

Thanks

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 39,218
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Grab windows object misfit
« Reply #11 on: April 19, 2019, 01:27 AM »
 :up: