自动登录Chinaren校友录脚本

以下为我写的自动登录Chinaren校友录的脚本:
'============================
On Error Resume Next
set Wshell=WScript.createobject("WScript.shell")
while(true)
            'On Error Resume Next
            set ie=WScript.createobject("internetexplorer.application")
           
            ie.navigate " http://alumni.chinaren.com/class/class_index.jsp?classuuid=135876464987354687345"
          ie.visible=true
            do
                Wscript.sleep 6000
            loop until (ie.ReadyState=3  Or ie.ReadyState = 4)
            Wscript.sleep 4000
            Set txt =ie.Document.body.createTextRange()
            If(txt.findText("本班成员登录才可查看")) then
       ie.visible = true
                in_name = ie.Document.getElementsByName("uid")
                in_pass = ie.Document.getElementsByName("passwd")
                in_name.value = "你的用户名"                
    in_pass.value = "你的密码"
                Wscript.sleep 500
          in_pass.focus() 
          wshell.sendkeys "~"          
                Wscript.sleep 1000
    ie.visible = false
                do
                    Wscript.sleep 3000
                loop until (ie.ReadyState = 3 Or ie.ReadyState = 4)
            End if
              
            'if err.number then 
            '    err.Clear              
            'end if 
            wscript.sleep 30000
            'wshell.sendkeys"^w" 
            ie.quit()
            wscript.sleep 1000*60*15
 wend
 
'=======================================
将以上文字拷贝到文本文件中,然后将“ classuuid=135876464987354687345”中的“135876464987354687345”改为你班级主页的id,然后将“ 你的用户名”改为你的用户名,例如:xuwedo2001,将“你的密码”改为你的密码,例如:159753。保存,然后将文件的扩展名改为“.vbs”,例如:autoLoginChinaren.vbs,然后双击即可。 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值