DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Grab windows object misfit  (Read 8,385 times)

Chris Douce

  • Supporting Member
  • Joined in 2019
  • **
  • Posts: 6
Grab windows object misfit
« on: April 17, 2019, 07: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: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: Grab windows object misfit
« Reply #1 on: April 17, 2019, 10: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
  • **
  • Posts: 6
Re: Grab windows object misfit
« Reply #2 on: April 17, 2019, 05: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.

[attachthumb=#]

Chris

Chris Douce

  • Supporting Member
  • Joined in 2019
  • **
  • Posts: 6
Re: Grab windows object misfit
« Reply #3 on: April 17, 2019, 05:08 PM »
Additional info:

I use V4.31.2

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: Grab windows object misfit
« Reply #4 on: April 17, 2019, 05: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
  • **
  • Posts: 6
Re: Grab windows object misfit
« Reply #5 on: April 17, 2019, 06: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: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: Grab windows object misfit
« Reply #6 on: April 17, 2019, 08: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
  • **
  • Posts: 6
Re: Grab windows object misfit
« Reply #7 on: April 18, 2019, 06: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: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: Grab windows object misfit
« Reply #8 on: April 18, 2019, 05: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: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: Grab windows object misfit
« Reply #9 on: April 18, 2019, 08:12 PM »
Can you try this beta:
http://www.donationcoder.com/Software/Mouser/screenshotcaptor/downloads/beta/ScreenshotCaptorSetup.exe
or portable.

Chris Douce

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

Thanks

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: Grab windows object misfit
« Reply #11 on: April 19, 2019, 06:27 AM »
:up:

Original address: https://www.donationcoder.com/forum/index.php?topic=47525.0