您的位置:首页 > 编程语言 > VB

vbs自动登陆115网盘代码

2011-02-12 21:32 197 查看
vbs自动登陆115网盘代码:

Sub log115()
Dim ieobj
Set ieobj=CreateObject("InternetExplorer.Application")
ieobj.Visible = True
ieobj.navigate "http://u.115.com"
Do Until ieobj.Readystate = 4
WScript.Sleep 100
Loop
If InStr(ieobj.LocationURL,"http://u.115.com/?")>0 Then
ieobj.Silent=True
Else
ieobj.Document.All("account").Value = "aautotest"
ieobj.Document.All("passwd").Value = "asd123"
ieobj.Document.All("passwd").Form.Submit()
End If
Set ieobj=Nothing
End Sub
log115()


vba版登陆115网盘代码(office中使用)

Sub log115()
Dim ieobj
Set ieobj = CreateObject("InternetExplorer.Application")
ieobj.Visible = True
ieobj.navigate "http://u.115.com"
Do Until ieobj.Readystate = 4
DoEvents
Loop
If InStr(ieobj.LocationURL, "http://u.115.com/?") > 0 Then
ieobj.Silent = True
Else
ieobj.Document.All("account").Value = "aautotest"
ieobj.Document.All("passwd").Value = "asd123"
ieobj.Document.All("passwd").Form.Submit
End If
Set ieobj = Nothing
End Sub
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: