On Jan 25, 9:12 am, "Jakob.Mai...@googlemail.com"
<Jakob.Mai...@googlemail.com> wrote:
> Hi there...
> does anyone know if there is a way to take a screenshot with a script?
>
> Thanks,
>
> Jakob
This example will print your screen.
[reflection.assembly]::LoadWithPartialName("System.Drawing") > $null
$Bitmap = new-object System.Drawing.Bitmap 1280,1024
$Size = New-object System.Drawing.Size 1280,1024
$FromImage = [System.Drawing.Graphics]::FromImage($Bitmap)
$FromImage.copyfromscreen(0,0,0,0, $Size,
([System.Drawing.CopyPixelOperation]::SourceCopy))
$Bitmap.Save("c:\PrintScreen.png",
([system.drawing.imaging.imageformat]:

ng)); # the acceptable
values: png, jpeg, bmp, gif...
invoke-item c:\PrintScreen.png
Regards,
aleksandar