Skip to content

Implement desktop screenshot capture#14

Merged
PrzemyslawKlys merged 11 commits intov2-speedygonzalesfrom
add-screenshot-capability-in-desktopmanager
Jun 18, 2025
Merged

Implement desktop screenshot capture#14
PrzemyslawKlys merged 11 commits intov2-speedygonzalesfrom
add-screenshot-capability-in-desktopmanager

Conversation

@PrzemyslawKlys
Copy link
Copy Markdown
Member

Summary

  • enable capturing desktop screenshot via ScreenshotService
  • expose new Get-DesktopScreenshot cmdlet
  • support screen capture constants in MonitorNativeMethods
  • reference System.Drawing.Common in projects
  • document new cmdlet and feature

Testing

  • dotnet test Sources/DesktopManager.Tests/DesktopManager.Tests.csproj
  • dotnet build Sources/DesktopManager.sln

https://chatgpt.com/codex/tasks/task_e_6851a8eb6ad0832e98360adecf78d353

* Updated `CmdletsToExport` in `DesktopManager.psd1` to include `Get-DesktopScreenshot`.
* Added example script for capturing desktop screenshots.
* Introduced a new configuration option `RefreshPSD1Only` set to `$true`.
* This change enhances the build process by allowing selective refreshing of PSD1 files.
@PrzemyslawKlys PrzemyslawKlys changed the base branch from master to v2-speedygonzales June 18, 2025 06:41
… multiple monitors

* Modified the script to save screenshots for each monitor separately.
* Added `-Monitor` parameter to specify the monitor for each screenshot.
…screenshot functionality

* Removed `Get-DesktopScreenshot` from `CmdletsToExport` in `DesktopManager.psd1`.
* Updated example script to use `Invoke-DesktopScreenshot` for capturing screenshots.
* Enhanced example script to demonstrate capturing screenshots from multiple monitors and specific regions.
* Added missing newline at the end of the file.
* This change improves file consistency and adheres to coding standards.
@PrzemyslawKlys PrzemyslawKlys merged commit f36b29e into v2-speedygonzales Jun 18, 2025
7 checks passed
@PrzemyslawKlys PrzemyslawKlys deleted the add-screenshot-capability-in-desktopmanager branch June 18, 2025 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant