似乎不行
我直接这样写的:
#include <GUIConstants.au3>
#include <IE.au3>
$oIE = _IECreate("http://tq.360.cn/trail-c.html",0,1)
Dim $YanZhengMa = ""
$YanZhengMa = InputBox("验证码", "请输入验证码,并单击[确定]","YanZheng")
If @error = 1 Then
Exit
Else
EndIf
_IELoadWait ($oIE)
$YanZheng = _IEGetObjById ($oIE, "code")
If IsObj($YanZheng) Then $YanZheng.value = $YanZhengMa
$submit = _IEGetObjByName ($oIE, "button")
If IsObj($submit) Then $submit.click
Sleep(1000)
_IELinkClickByText($oIE,"复制到剪贴板")
错误提示:
--> IE.au3 V2.4-0 Warning from function _IELinkClickByText, $_IEStatus_NoMatch |