Get-ForegroundWindow
SYNOPSIS
PSCX Cmdlet: Returns the hWnd or handle of the window in the foreground on the current desktop. See also Set-ForegroundWindow.
SYNTAX
Get-ForegroundWindow [<CommonParameters>]
DESCRIPTION
Returns the hWnd or handle of the window in the foreground on the current desktop. See also Set-ForegroundWindow.
EXAMPLES
EXAMPLE 1
PS C:\>
PARAMETERS
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.