< Back

Start-ActiveWindowCapture

Sun Jan 12, 2020 8:53 pm

NAME Start-ActiveWindowCapture



SYNOPSIS

Capture the active window





SYNTAX

Start-ActiveWindowCapture [-Milliseconds <Int32>] [-ImageType <String>] [-WhatIf] [-Confirm] [<CommonParameters>]





DESCRIPTION

Capture the active window





PARAMETERS

-Milliseconds <Int32>

Milliseconds between screenshot



Required? false

Position? named

Default value 1000

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-ImageType <String>

Image type to capture



Required? false

Position? named

Default value png

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Confirm [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



NOTES





This was borrowed from Boe Prox in his Take-ScreenShot PowerShell Function This function has used some of

Boe Prox's Take-ScreenShot PowerShell function

Name: Take-ScreenShot

Author: Boe Prox

DateCreated: 07/25/2010

Modified Author: Josh Rickard (MSAdministrator)

Modified Date: 07/07/2018



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Start-ActiveWindowCapture













-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Start-ActiveWindowCapture -Milliseconds 500 -ImageType jpeg















RELATED LINKS