Quantcast
Channel: PowerShell
Viewing all articles
Browse latest Browse all 15370

Powershell No title in window

$
0
0

I am trying to automate a small program to install hp drivers, however I cannot seem to find the title of the second window so I can pass ~ through as an enter key. the code works on the first part but not the second. any ideas on how I can get the name for this title screen


would be cool, thanks.

Powershell
$wshell=New-Object-ComObjectwscript.shell;$wshell.AppActivate('Open File - Security Warning')Sleep1$wshell.SendKeys('~')$wshell=New-Object-ComObjectwscript.shell;$wshell.AppActivate('')Sleep1$wshell.SendKeys('~')

Viewing all articles
Browse latest Browse all 15370

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>