找回密码
 加入
搜索
查看: 3919|回复: 4

[IE类操作] 求网页自动登录 验证码 部分的思路

[复制链接]
发表于 2014-4-11 16:48:53 | 显示全部楼层 |阅读模式
本帖最后由 agohero 于 2014-4-11 17:26 编辑

#include <IE.au3>
$sUrl = "https://cas.hwabaotrust.com/cas/login?service=http%3A%2F%2Fwww.hwabaotrust.com%2FSSOIntegration%2F"
$oIE = _IECreate($sUrl)
$oQuery = _IEGetObjById($oIE,"username")
$oQuery.value = "用户名"
$oQuery = _IEGetObjById($oIE,"password")
$oQuery.value = "密码"
$Ele = _IETagNameGetCollection($oIE,"input",5)
_IEAction($Ele,"click")

2个问题:
1.请问javascript的登录按钮如何点击。(本人以前是用上面的input或是按照片点击登入的)
(按钮元素:<A href="javascript:loginSSO(0);">登 录 </A>)

2.验证码如何自动填入呢?(如本人引用阿福的字符库)
CODEFONT.txt 请问这个字符库如何引用啊

CodeFont.txt内容如下

6,000001110001110000110000011000000101110011100110110000111100001111000011110000110110011000111100
2,001111000100111010000110000001100000011000000100000011000000100000010000001000010111111111111110
8,001111000110001111000011110000110111011000111000001111000100011011000011110000110110011000111100
1,000110000111100000011000000110000001100000011000000110000001100000011000000110000001100001111110
7,001111110011111101000001000000100000001000000010000001000000010000001000000010000000100000010000
4,000001100000011000001110000101100010011000100110010001101000011011111111000001100000011000000110
0,000111000011011000100010011000110110001101100011011000110110001101100011001000100011011000011100
3,001111000100111010000110000001100000110000011100000011100000011000000110000001101100110011111000
9,001111000110011011000011110000111100001111000011011000110011111000000110000011000001100011100000
5,000111100001111000100000001110000111110000001110000001100000000000000010000000100100010001111000
发表于 2014-4-19 17:39:20 | 显示全部楼层
我也在研究,无果
发表于 2014-5-15 17:44:17 | 显示全部楼层
$oIE.document.parentWindow.execscript("loginSSO(0)")
试试
发表于 2014-5-15 17:46:20 | 显示全部楼层
验证码输入:
$a=_IEGetObjById($oIE,"ssofjm")
$a.value = "1234"
发表于 2014-5-15 17:46:50 | 显示全部楼层
验证码识别部分自己做
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-11-16 21:54 , Processed in 0.070707 second(s), 19 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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