1. ///////////////////////////////////////////
  2. //--------龙战挂机刷怪V1.0-----------
  3. // 2008-12-10 by vrorca
  4. ///////////////////////////////////////////
  5. //打开龙战进入游戏
  6. 开始VBScript块
  7.     dim iedg
  8.     set iedg=createobject("internetexplorer.application")
  9.     iedg.navigate "http://w1.lz.woniu.com/"
  10.     do While iedg.busy or iedg.readystate<4
  11.     延时500毫秒
  12.     Loop
  13.     iedg.visible=1
  14.     iedg.document.all.userName.value="*******"
  15.     iedg.document.all.pwd.value="******"
  16.     'iedg.document.all.enter.click
  17.     msgbox "请输入验证码过后,点击确定继续!"
  18. 结束VBScript块
  19. 调用插件命令 Window.Active(iedg.hwnd)
  20. 调用插件命令 Window.max(iedg.hwnd)
  21. set iedg=nothing
  22. //初始化IE控制界面
  23. 开始VBScript块
  24.     Dim ie,exit_my_script
  25.     exit_my_script=-1
  26.     pause_my_script=-1
  27.     Set ie=createobject("internetexplorer.application")
  28.     ie.menubar=0
  29.     ie.addressbar=0
  30.     ie.toolbar=0
  31.     ie.statusbar=0
  32.     ie.width=500
  33.     ie.height=420
  34.     ie.resizable=0
  35.     ie.navigate "about:blank"
  36.     ie.left=fix((ie.document.parentwindow.screen.availwidth-ie.width))
  37.     ie.top=fix((ie.document.parentwindow.screen.availheight-ie.height))
  38.     ie.visible=1
  39.     with ie.document
  40.     .write "<BODY bgcolor=cccccc><table><font color=blue size=+1>龙战自动挂机v1.0</font>"
  41.     .write "************************<INPUT TYPE=Button NAME=extDrgGame VALUE=结束脚本>"
  42.     .write "<INPUT TYPE=Button NAME=pauseDrgGame VALUE=暂停><hr>"
  43.     .write "<font size=-1>选择怪物<select name=selectMonst width=50>"
  44.     .write "<option value=FFCC>骷髅勇士[3]FFCC</option>"
  45.     .write "<option value=FF99>鼠怪头领[3]FF99</option> "
  46.     .write "<option value=BF4C>狂狗[2]BF4C</option>"
  47.     .write "<option value=FFFF>杀人蜂卫兵[3]FFFF</option> "
  48.     .write "</select>"
  49.     .write "设置攻击模式<select name=attacktype width=50>"
  50.     .write "<option value=0>按组合招式0</option>"
  51.     .write "<option value=1>探索组合招式1</option>"
  52.     .write "组合招式<INPUT TYPE=text NAME=attackorder VALUE=112322 size=5>"
  53.     .write "</select><hr>"
  54.     .write "角色血量:<input type=text name=maxblood value=203>"
  55.     .write "回血速度:<input type=text name=bldUpSpd value=2.0><br>"
  56.     .write "杀怪经验:<input type=text name=perEXP value=0.02>"
  57.     .write "是否组队:<input type=text name=term value=0><br>"
  58.     .write "除错时间:<input type=text name=outTimes value=30>"
  59.     .write "过场延迟:<input type=text name=maxdly value=3000>"
  60.     .write "</table><hr>"
  61.     .write "<table align=left border=0><tr><th>"
  62.     .write "<textarea type=text style=background-color:FFC5F1;color:7B0000;font:12px;width:230;height=160>Loading Please wait...</textarea></th>"
  63.     .write "<th><textarea type=text style=background-color:39292F;color:FA9FC6;font:11px;width:230;height=160>Loading Please wait...</textarea></th></tr></table>"
  64.     .write "</font></BODY>"
  65.     End With
  66.     dim ietxt
  67.     set ietxt = IE.Document.getElementsBytagName("textarea")
  68.     ie.document.all.extDrgGame.onclick=getref("exitscript")
  69.     ie.document.all.pauseDrgGame.onclick=getref("pausescript")
  70.     子程序 exitscript
  71.         exit_my_script=-exit_my_script
  72.         End sub
  73.         '//暂停为什么按下了就不能再按了?
  74.         子程序 pausescript
  75.             pause_my_script=-pause_my_script
  76.             如果表达式 (pause_my_script=1 then: ie.document.all.pauseDrgGame.value="暂停") 为真,则
  77.                 如果表达式 (pause_my_script=1 then: ie.document.all.pauseDrgGame.value="继续") 为真,则
  78.                     End sub
  79.                 结束VBScript块
  80.                 ///////////////////////////////////////////
  81.                 dim hwnd,subhwnd,subtip(3),main_win_left,main_win_top,gameinfotext
  82.                 dim rect,bcxy,rectxy,pupxy,monsterxy,termxy,dagxy,btlxy,btlendxy,chkdiexy,chkbloodxy,chkplacexy,chkbloodxy2
  83.                 subtip(0)=" -- 网页对话框"
  84.                 subtip(1)="消息 -- 网页对话框"
  85.                 subtip(2)="《龙战:龙之遗产》中文官方网站 - Microsoft Internet Explorer"
  86.                 调用插件命令 hwnd=Window.MousePoint()
  87.                 //Plugin clss=Window.GetClass(hwnd)
  88.                 //inputbox clss,,clss
  89.                 //EndScript
  90.                 //Plugin hwnd1=Window.Find(0,subtip(2))
  91.                 //Plugin hwnd=Window.FindEx(0,0,"Internet Explorer_Server",0)
  92.                 调用插件命令 rect=Window.GetWindowRect(hwnd)
  93.                 rectxy=Split(rect,"|",-1,1)
  94.                 main_win_left=rectxy(0)*1:main_win_top=rectxy(1)*1
  95.                 strMsg="游戏窗口: " & hwnd & " 已经被锁定!" & vbcrlf
  96.                 strMsg=strmsg&"窗口大小:" & main_win_left & "," & main_win_top
  97.                 msgbox strmsg
  98.                 strmsg=""
  99.                 gameinfotext=""
  100.                 dim left,top,right,bottom,c,c1,dagc,x,y,x1,y1,i,j,k,mytermid