找回密码
 加入
搜索
查看: 3083|回复: 5

[IE类操作] 求高手看下,为什么函数未声明呢?

[复制链接]
发表于 2014-5-12 11:19:42 | 显示全部楼层 |阅读模式
#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()                                    ;错误

搞不懂,脚本可以正常运行,但运行完毕后会出现这个报错。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?加入

×
 楼主| 发表于 2014-5-12 20:26:08 | 显示全部楼层
有没有高手啊
发表于 2014-5-12 20:43:40 | 显示全部楼层
$oBj.Click()  
貌似这个报错,没定义内容还是???
 楼主| 发表于 2014-5-12 22:37:38 | 显示全部楼层
$oBj.Click()  
貌似这个报错,没定义内容还是???
邪恶海盗 发表于 2014-5-12 20:43



    定义了啊 在28行。字符串为“登录”
$oBj = _IELinkClickByText($oIE,"登 录 ")
 楼主| 发表于 2014-5-12 22:38:28 | 显示全部楼层
脚本 可以正常运行。。就是运行完毕报个错。郁闷
发表于 2014-5-13 16:45:57 | 显示全部楼层
_IELinkClickByTex()此函数的返回值要么是-1,要么是0。它不是一个对象啊。按F1看看相关的内容吧。
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-5-6 00:30 , Processed in 0.077006 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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