Add item creation after bitmap save

Added a new item creation after saving the bitmap.
This commit is contained in:
Jay Lee
2026-04-25 18:40:57 -04:00
committed by GitHub
parent e476ad93ba
commit 0ece44575d

View File

@@ -45,7 +45,8 @@ 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}"
Write-Output "Wrote ${fullPath}";
New-Item "${fullPath}.written";
`;
try {