You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add WDA_EXCLUDEFROMCAPTURE support to hide edge light from screen capture (#22)
* Initial plan
* Implement WDA_EXCLUDEFROMCAPTURE feature with settings persistence
- Add AppSettings class for persistent configuration storage
- Add P/Invoke declarations for SetWindowDisplayAffinity Windows API
- Implement exclude from capture functionality for main and additional monitor windows
- Add tray menu option with checkmark for the feature
- Add control toolbar button (🎥) for quick toggle
- Persist setting across application restarts using JSON configuration
- Update README with comprehensive documentation about screen sharing mode
- Update help dialog to mention the new feature
Co-authored-by: shanselman <2892+shanselman@users.noreply.github.com>
* Add error handling and improve accessibility for exclude from capture feature
- Add error handling to SetWindowDisplayAffinity calls with debug logging
- Improve JSON deserialization with validation and error recovery
- Update button tooltip to clearly indicate current state for better accessibility
- Add SetLastError to P/Invoke declaration for proper error reporting
Co-authored-by: shanselman <2892+shanselman@users.noreply.github.com>
* Fix error handling to capture Win32 error codes immediately
- Store error code immediately after API call to ensure accuracy
- Add missing System namespace import in AppSettings.cs
Co-authored-by: shanselman <2892+shanselman@users.noreply.github.com>
* Simplify exclude-from-capture: default ON, remove button from UI
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: shanselman <2892+shanselman@users.noreply.github.com>
Co-authored-by: Scott Hanselman <scott@hanselman.com>
Copy file name to clipboardExpand all lines: README.md
+11Lines changed: 11 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,7 @@ A lightweight WPF application that adds a customizable glowing edge light effect
14
14
-**Toggle On/Off**: Quickly enable or disable the edge light effect
15
15
-**Hideable Controls**: Hide the control toolbar for a cleaner look, restore via tray menu
16
16
-**Always On Top**: Stays visible above all other windows
17
+
-**Exclude from Screen Capture**: Optional setting to hide the edge light from screen sharing (Teams, Zoom) and screenshots
17
18
-**Keyboard Shortcuts**:
18
19
-`Ctrl+Shift+L` - Toggle light on/off
19
20
-`Ctrl+Shift+Up` - Increase brightness
@@ -85,9 +86,19 @@ The executable will be in `bin\Release\net10.0-windows\win-x64\publish\WindowsEd
85
86
- 🔥 **Warmer Color** - Shifts the glow towards a warmer, amber tone
86
87
- 💡 **Toggle Light** - Turn the effect on/off
87
88
- 🖥️ **Switch Monitor** - Move to next monitor (if multiple monitors)
89
+
- 🖥️🖥️ **All Monitors** - Show on all monitors (if multiple monitors)
90
+
- 🎥 **Exclude from Capture** - Hide from screen sharing and screenshots
88
91
- ✖ **Exit** - Close the application
89
92
4. Hide the control toolbar for a cleaner look using the tray menu (right-click tray icon → "Hide Controls")
90
93
94
+
### Screen Sharing Mode
95
+
96
+
When sharing your screen on video conferencing apps (Teams, Zoom, etc.), you may want the edge light to be visible to you but invisible to viewers. Enable **"Exclude from Screen Capture"** via:
97
+
- Click the 🎥 button in the control toolbar, or
98
+
- Right-click the tray icon → "Exclude from Screen Capture"
99
+
100
+
**Note**: When this setting is enabled, the edge light will also be excluded from screenshots taken with Windows Snipping Tool, PrintScreen, or other capture tools.
0 commit comments