mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-03 12:21:35 +00:00
Add item creation after bitmap save
Added a new item creation after saving the bitmap.
This commit is contained in:
@@ -45,7 +45,8 @@ async function takeScreenshot(filename) {
|
|||||||
$graphic = [System.Drawing.Graphics]::FromImage($bitmap);
|
$graphic = [System.Drawing.Graphics]::FromImage($bitmap);
|
||||||
$graphic.CopyFromScreen($Screen.Left, $Screen.Top, 0, 0, $bitmap.Size);
|
$graphic.CopyFromScreen($Screen.Left, $Screen.Top, 0, 0, $bitmap.Size);
|
||||||
$bitmap.Save('${fullPath}');
|
$bitmap.Save('${fullPath}');
|
||||||
Write-Output "Wrote ${fullPath}"
|
Write-Output "Wrote ${fullPath}";
|
||||||
|
New-Item "${fullPath}.written";
|
||||||
`;
|
`;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user