microsoft / PowerToys

Windows system utilities to maximize productivity
MIT License
111.47k stars 6.56k forks source link

I hope to hide "Mouse Highlighter" and "Mouse Pointer Cross" when taking screenshots #31159

Open lh11117 opened 9 months ago

lh11117 commented 9 months ago

Microsoft PowerToys version

0.77.0

Installation method

PowerToys auto-update

Running as admin

No

Area(s) with issue?

Mouse Utilities and TextExtractor

Steps to reproduce

Enable "Mouse Highlighter" or "Mouse Pointer Cross" in "Mouse Utility" in PowerToys, then press Win+Shift+S to take a screenshot, or press Win+shift+T to recognize the text on the screen (PowerToys Text Extractor).

✔️ Expected Behavior

I hope to hide "Mouse Highlighter" and "Mouse Pointer Cross" when taking screenshots. Thanks.

❌ Actual Behavior

When PowerToys enables "Mouse Highlighter" or "Mouse Pointer Cross" in "Mouse Utilities", when you press Win+Shift+S to take a screenshot, or when you use PowerToys' text extractor (Win+Shift+T), the captured image still has traces of "Mouse Highlighter" or "Mouse Pointer Cross".

https://github.com/microsoft/PowerToys/assets/99455215/8ced9679-412c-48f6-bab8-8bd20d8d39d1

Other Software

Windows Snipping Tool 11.2303.17.0

crutkas commented 4 months ago

think this is as easy as adding a flag

https://stackoverflow.com/questions/25664989/how-to-exclude-certain-window-from-screen-capture-in-win32-api#:~:text=Since%20Windows%2010%20version%202004%20%28build%2010.0.19041%29%2C%20the,else%2C%20the%20window%20does%20not%20appear%20at%20all.