ShareX / ShareX

ShareX is a free and open source program that lets you capture or record any area of your screen and share it with a single press of a key. It also allows uploading images, text or other types of files to many supported destinations you can choose from.
https://getsharex.com
GNU General Public License v3.0
27.97k stars 3.09k forks source link

Doesn't capture transparent window, instead gets underlying screen #7377

Closed tabletguy closed 1 month ago

tabletguy commented 1 month ago

Using cFossSpeed (version 13 - latest paid) set in transparent mode, trying to capture the window of the running program, it, instead, captures the background screen

image

What it actually captured: CFosSpeedWindow Capture

What I was trying to capture (I added the arrow afterwards by capturing with a different screen capture program) 2024-04-01 09 54 20

Using current ShareX 16.01 on Windows 11 Pro 22H2, 32GB memory

tabletguy commented 1 month ago

It actually isn't even the screen background. I changed the background (right side monitor #2) to a very dark red in that section, and did another "window" capture. The resulting capture was the correct dimensions of the window, but was a white rectangle.

(It's invisible because it's white on white (Sorry!)

CFosSpeedWindow Capture by ShareX

Jaex commented 1 month ago

It is possible to hide their own window from screenshots: https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setwindowdisplayaffinity

So they could be doing it on purpose to not cover screenshots.

tabletguy commented 1 month ago

I was easily able to do a screenshot with another program -- no changes to the settings. It's only ShareX that couldn't do the screenshot.

To be clear, I wasn't complaining about not getting the Windows background. I was pointing out that ShareX did not get the CFos window even though I selected it directly from the menu.

On Mon, Apr 1, 2024 at 4:25 PM Jaex @.***> wrote:

It is possible to hide their own window from screenshots:

https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setwindowdisplayaffinity

So they must be doing it on purpose to not cover screenshots.

— Reply to this email directly, view it on GitHub https://github.com/ShareX/ShareX/issues/7377#issuecomment-2030583673, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAU63W32NFX5SLRWA67ZMSTY3HGF3AVCNFSM6AAAAABFRYTBSSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMZQGU4DGNRXGM . You are receiving this because you authored the thread.Message ID: @.***>