我正在尝试自动化一些东西,我正在安装某些驱动程序。然而,由于司机没有签名,我看到附加的安全对话。我想自动化并单击“安全”对话框上的“安装”或“不安装”。到目前为止,我已经尝试了某些选项,如pywinauto,WASP和AutoIt,但似乎没有任何效果。你知道吗
以下是我迄今为止尝试过的选项:
黄蜂
Select-Window -title "Windows Security"| Set-WindowActive | Send-Keys "%n"
Select-Window -title "Windows Security | Set-WindowActive | Select-Control -title "Do&n't I&nstall" | Send-Keys "%n"
Select-Window -title "Windows Security | Set_WindowActive | Select-Control -title "Do&n't I&nstall" -recurse | Send-Click
自动化
1。你知道吗
WinActivate("Windows Security" , "")
ControlClick("Windows Security" , "" , "[CLASS:Button;INSTANCE:2]")
2。你知道吗
WinWait("Windows Security", "")
WinActivate("Windows Security")
ControlSend("Windows Security" , "" , "[Class:Button;Instance:2]" , ("{Enter}"))
Exit(0)
这些命令在Windows 2008上运行良好,但在Windows 2012上失败。请帮助我解决这个问题。你知道吗
注意:在Windows 2012中,只有窗口被激活。但之后什么也没发生。你知道吗
目前没有回答
相关问题 更多 >
编程相关推荐