[软件问题] 问问三人行投票代码.--vbs

5941 1
李武职 2010-9-23 11:20:53 | 显示全部楼层 |阅读模式
Set a=WScript.CreateObject("WScript.shell")  
a.run "http://wenwen.soso.com/z/sanrenxing.htm" '打开页面
WScript.Sleep 5000'延时几秒,等待页面载入

a.SendKeys "{TAB}"  
a.SendKeys "{TAB}"
a.SendKeys "{TAB}"
a.SendKeys "{TAB}"  
a.SendKeys "{TAB}"
a.SendKeys "{TAB}"
a.SendKeys "{TAB}"  
a.SendKeys "{TAB}"
a.SendKeys "{TAB}"
a.SendKeys "{TAB}"
a.SendKeys "{TAB}"

a.Sendkeys "{ENTER}"
WScript.Sleep 5000
a.SendKeys "{TAB}"
a.SendKeys "{TAB}"  
a.SendKeys "{TAB}"
a.SendKeys "{TAB}"  
a.SendKeys "{TAB}"
a.SendKeys "{TAB}"  
a.SendKeys "{TAB}"
a.SendKeys "{TAB}"
a.Sendkeys "{ENTER}"

WScript.Sleep 5000'延时几秒,等待页面载入

a.SendKeys "{TAB}"

a.SendKeys "{TAB}"
a.Sendkeys "{ENTER}"
'------------------------------------------------
'一轮回完毕.     多复制就多轮回.

  '第一段不可以复制.复制内容如下....
     'WScript.Sleep 5000
     'a.SendKeys "{TAB}"
     'a.SendKeys "{TAB}"  
     'a.SendKeys "{TAB}"
     'a.SendKeys "{TAB}"  
     'a.SendKeys "{TAB}"
     'a.SendKeys "{TAB}"  
     'a.SendKeys "{TAB}"
     'a.SendKeys "{TAB}"
     'a.Sendkeys "{ENTER}"

   'WScript.Sleep 5000'延时几秒,等待页面载入

     'a.SendKeys "{TAB}"

     'a.SendKeys "{TAB}"
     'a.Sendkeys "{ENTER}"

     'WScript.Sleep 5000
     'a.SendKeys "{TAB}"
     'a.SendKeys "{TAB}"  
     'a.SendKeys "{TAB}"
     'a.SendKeys "{TAB}"  
     'a.SendKeys "{TAB}"
     'a.SendKeys "{TAB}"  
     'a.SendKeys "{TAB}"
     'a.SendKeys "{TAB}"
     'a.Sendkeys "{ENTER}"
'-------------------------------------
'保存为. ----(名字.vbs)
尽量不要复制太多.有时候会连接出错。太多-----嘿嘿.
'如果没有正确连接进去。请调用任务管理器.在进程管理里面.结束wscrip.进程.
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

中国红客联盟公众号

联系站长QQ:5520533

admin@chnhonker.com
Copyright © 2001-2025 Discuz Team. Powered by Discuz! X3.5 ( 粤ICP备13060014号 )|天天打卡 本站已运行