PS-Commands/Scripts/Get-AltTab.ps1

7 lines
134 B
PowerShell
Raw Normal View History

2023-10-03 22:02:33 +03:00
function Get-AltTab {
$wshell = New-Object -ComObject wscript.shell
$wshell.SendKeys("%{Tab}")
sleep 120
Get-AltTab
}
Get-AltTab