PS-Commands/Scripts/Get-AltTab.ps1

6 lines
158 B
PowerShell
Raw Normal View History

2023-10-03 22:02:33 +03:00
function Get-AltTab {
(New-Object -ComObject wscript.shell).SendKeys("%{Tab}")
Start-Sleep $(Get-Random -Minimum 30 -Maximum 180)
2023-10-03 22:02:33 +03:00
Get-AltTab
}
Get-AltTab