我尝试通过以下代码登录到 Firefox 身份验证窗口:
WinWaitActive("Authentication Required","","120")
If WinExists("Authentication Required") Then
Send("username{TAB}")
Send("password{Enter}")
EndIf
但同样的作用也适用于 Chrome,尽管它与 Firefox 具有相同的标题。
任何想法?
@Milos @Samoth 感谢您花钱解决我的问题。
使用 Autoit Windows 信息工具,我无法识别 Chrome 中的 Windows 磁贴,这在 FF 或 IE 中不是这种情况。而不是将“需要身份验证”标识为可见文本。
所以将代码修改为
WinWaitActive("","Authentication Required","120")
If WinExists("","Authentication Required") Then
Send("username{TAB}")
Send("password{Enter}")
EndIf
Chrome 浏览器就成功了。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)