修改为可以自动获得当天帐号和密码:
#include <ie.au3>
Opt('TrayAutoPause', 0)
$oIE = _IECreate('http://bbs.nod32sj.cn/forum-11-1.html', 0, 0, 1, 0)
$GET = _IELinkClickByText($oIE, '['&@YEAR&'年'&@MON&'月'&@MDAY&'日]NOD32最新升级ID', '', 1)
If $GET <> -1 Then
MsgBox(64, '错误', '今天的帐号和密码还没更新出来!稍后再试...')
Exit
EndIf
Sleep(1000)
$oIE = _IEDocReadHTML($oIE)
Local $offset = 1, $GET = ''
While 1
$String = StringRegExp($oIE, 'EAV-\d{8} - \w{10}', 1, $offset)
If @error = 0 Then
$offset = @extended
Else
ExitLoop
EndIf
$GET &= $String[0] & ' ' & @CRLF
WEnd
If MsgBox(36, '消息', '提取出的帐号和密码是:' & @CRLF & @CRLF & $GET & @CRLF & '是否记录到文件USER&PASS.LOG?') = 6 Then FileWrite('USER&PASS.LOG', $GET)
[ 本帖最后由 liongodmien 于 2008-10-17 10:22 编辑 ] |