Log output after saving bitmap

Add output message after saving bitmap in PowerShell script.
This commit is contained in:
Jay Lee
2026-04-25 18:28:26 -04:00
committed by GitHub
parent 21ba5e3ac0
commit e476ad93ba

View File

@@ -45,6 +45,7 @@ async function takeScreenshot(filename) {
$graphic = [System.Drawing.Graphics]::FromImage($bitmap);
$graphic.CopyFromScreen($Screen.Left, $Screen.Top, 0, 0, $bitmap.Size);
$bitmap.Save('${fullPath}');
Write-Output "Wrote ${fullPath}"
`;
try {