Examples/ContinuousCapture.ps1
Start-Job -ArgumentList (New-TimeSpan -Seconds 1) { param([Timespan]$interval) Import-Module XBPS, PSImageTools $Counter = 1 while ($true) { Get-XboxScreenshot "${env:UserProfile}\xbox.$counter.bmp" | Get-Image | ConvertTo-Jpeg -Remove Start-Sleep -Milliseconds $interval.TotalMilliseconds $counter++ } } Start-Xboxsignoff |