Invokes Microsoft's WinApp CLI screen capture on the chosen foreground window, avoiding transparent edges.
. .\Get-Screenshot.ps1 Get-Screenshot -Name 'notepad' -Path .\notepad.png Get-Screenshot -Hwnd (Get-HWND -Name 'npad' | Select-Object -First 1)
-Name
-ProcessId
-Hwnd
-Path
PNG FileInfo object.
Requires Microsoft WinApp CLI and a running interactive Windows desktop. Captures visible content, including overlays.
Source script · Documentation page
There was an error while loading. Please reload this page.
Docs website · Source