gpt4 book ai didi

powershell - Powershell选择类窗口事件/可见

转载 作者:行者123 更新时间:2023-12-03 00:14:52 25 4
gpt4 key购买 nike

当我敲击具有密码保护的办公文档时,我的Powershell ISE自动化出现问题。与excel不同,例如在powerpoint中显然没有用于传递密码的参数。

当Windows对话框弹出时,这就是我的脚本崩溃的地方。

我需要能够将变量或发送键传递给该 Activity 窗口。

窗口类是#32770。

如何在Powershell中设置#32770的Windows类,以便在使用密码打开和关闭文档时可以将SENDKEYS合并到该窗口中?

最佳答案

我建议使用AutoIt cmdlets for Powershell

脚本将如下所示:

Wait-AU3WinActive -Title "Input password"
Send-AU3Key -Key "p@$$w0rd"

关于powershell - Powershell选择类窗口事件/可见,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37887839/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com