#include <IE.au3>
#include <ScreenCapture.au3>
#include <Clipboard.au3>
$oIE = _IECreate("https://cas.hwabaotrust.com/cas/login?service=http%3A%2F%2Fwww.hwabaotrust.com%2FSSOIntegration%2F",1)
$ocode=$oIE.Document.getElementById("input3").focus()
Sleep(200)
$oImg = $oIE.Document.getElementById("IM")
$oPic = $oIE.Document.body.createControlRange()
$oPic.Add($oImg)
$oPic.execCommand("Copy")
_ClipBoard_Open(0)
$ivpics = _ClipBoard_GetDataEx($CF_BITMAP)
_ClipBoard_Close()
_ScreenCapture_SaveImage(@ScriptDir & "\aaa.bmp", $ivpics)
$AntiDll = DllOpen ("AntiVC.dll")
$LocalCDS = @ScriptDir&"\blog.ce.cds"
$index = DllCall($AntiDll,"long","LoadCdsFromFile","str",$LocalCDS)
$FilePath = @ScriptDir&"\aaa.bmp"
$CdsResult = DllCall($AntiDll,"int","GetVcodeFromFile","int",$index[0],"str",$FilePath,"str",0)
DllClose($AntiDll)
$oQuery = _IEGetObjById($oIE,"username")
$oQuery.value = "users" ;错误
$oQuery = _IEGetObjById($oIE,"password")
$oQuery.value = "password"
$oQuery = _IEGetObjById($oIE,"ssofjm")
$oQuery.value = $CdsResult[3]
Sleep(200)
$oBj = _IELinkClickByText($oIE,"登 录 ")
$oBj.Click() ;错误
搞不懂,脚本可以正常运行,但运行完毕后会出现这个报错。 |