找回密码
 加入
搜索
查看: 2443|回复: 0

[IE类操作] 设置ie密码代理后,弹出代理的账号密码对话框时,不能自动点击确定。

[复制链接]
发表于 2014-6-5 21:44:31 | 显示全部楼层 |阅读模式

#include <ie.au3>
$pdfurl=1
$oie = _IECreate("http://www.sciencedirect.com/science/article/pii/B9780122841514500002", 1, 1, 1, 0)

;$Timer4 = TimerInit()
$a = 1
$win = 0
Do
        Sleep(60)

        If WinExists("连接到 web2.ucsd.edu", "") Then
                $win = 1
                MsgBox(0,0,"proxy")
                ControlSend("连接到 web2.ucsd.edu", "", "", '{Enter}')
                Sleep(1000)
                $a = $a + 1
        EndIf
Until $win = 1 Or $a > 60
$b = 1
$winb = 0
Do
        Sleep(60)

        If WinExists("连接到", "") Then
                $win = 1
                ControlSend("连接到", "", "", '{Enter}')
                Sleep(5000)
                $b = $b + 1
        EndIf
Until $winb = 1 Or $b > 10



$loadie = _IELoadWait($oie)
If $loadie = 1 Then
        $links = _IELinkGetCollection($oie)
        For $link In $links
                If StringLower($link.title) = "download pdf" Then
                        MsgBox(0, "", $link.href)
                        $pdfurl=$link.href
                        ExitLoop
                EndIf
        Next
EndIf
If $pdfurl<>1 Then MsgBox(0,0,"pdffounded")


您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-11-24 23:18 , Processed in 0.073701 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表