Created
August 12, 2019 14:44
-
-
Save alipandidan/416f84f1929209605ce4211b2eca44e1 to your computer and use it in GitHub Desktop.
Send keystrokes to apps
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Dismiss all Microsoft Visual Studio Community 2015 propmpts during installation automatically | |
while (Get-Process | Where-Object {$_.Description -eq "Microsoft Visual Studio Community 2015 with Updates"}) | |
{ | |
Start-Sleep -Seconds 60; | |
$wshell = New-Object -ComObject wscript.shell; | |
$wshell.AppActivate('Visual Studio'); | |
$wshell.SendKeys("{ENTER}") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment