1、运行按键精灵
2、新见脚本(点击源文件),将如下代码复制粘贴入内:
ProcessID=Plugin.Web.Bind("wqm.exe")
Delay 2000
If ProcessID=0 then
MessageBox "网页按键精灵没有运行"
EndScript
End If
Call Plugin.Web.Tips("脚本开始运行")
Call Plugin.Web.SetSize(1366,784)
Call Plugin.Web.ScrollTo(0, 0)
//第一个野//
Delay 593
Call Plugin.Web.MoveTo(1020, 480) //补兵//
Call Plugin.Web.LeftClick(1020, 480)
Delay 1000
Call Plugin.Web.MoveTo (644,12) //地图//
Delay 3000
Call Plugin.Web.LeftClick(644, 12)
Call Plugin.Web.MoveTo (938,40)//1111111111第一个坐标//
Call Plugin.Web.LeftClick(938,40)
Call Plugin.Web.MoveTo(938,40)
Delay 78
Call Plugin.Web.LeftDoubleClick(938,40)
Delay 109
Call Plugin.Web.LeftUp(938,40)
Call Plugin.Web.MoveTo(938,40)
Delay 2637
Call Plugin.Web.KeyPress(98) //野坐标//
Delay 234
Call Plugin.Web.KeyPress(96)
Delay 281
Call Plugin.Web.KeyPress (104) //11111111111第一个坐标//
Call Plugin.Web.MoveTo (974,40)//22222222222第二个坐标//
Call Plugin.Web.LeftClick(974,40)
Call Plugin.Web.MoveTo(974,40)
Delay 78
Call Plugin.Web.LeftDoubleClick(974,40)
Delay 109
Call Plugin.Web.LeftUp(974,40)
Call Plugin.Web.MoveTo(974,40)
Delay 2637
Call Plugin.Web.KeyPress(98) //野坐标//
Delay 234
Call Plugin.Web.KeyPress(105)
Delay 281
Call Plugin.Web.KeyPress (103) //22222222222第二个坐标//
Call Plugin.Web.MoveTo(1021,44) //移动//
Delay 2137
Call Plugin.Web.LeftClick(1021,44)
Delay 8000
Call Plugin.Web.MoveTo (660,302)//野外势力位置//
Delay 3000
Call Plugin.Web.LeftClick(660, 302)
Delay 1000
Call Plugin.Web.MoveTo (773, 299)//战争//
Delay 3000
Call Plugin.Web.LeftClick(773, 299)
Delay 3000
Call Plugin.Web.MoveTo(368, 105)//全选//
Delay 1000
Call Plugin.Web.LeftClick(368, 105)
Delay 3000
Call Plugin.Web.MoveTo(908, 553)//确定//
Delay 1000
Call Plugin.Web.LeftClick(908, 553)
Delay 8000
Call Plugin.Web.MoveTo(941, 11)//点兵//
Delay 1000
Call Plugin.Web.LeftClick(941, 11)
Delay 3000
Call Plugin.Web.MoveTo(1015, 481)//补兵//
Delay 1000
Call Plugin.Web.LeftClick(1015, 481)
Delay 158000
//第二个野//
Delay 593
Call Plugin.Web.MoveTo(1020, 480)//补兵//
Call Plugin.Web.LeftClick(1020, 480)
Delay 1000
Call Plugin.Web.MoveTo (644,12)//地图//
Delay 3000
Call Plugin.Web.LeftClick(644, 12)
Call Plugin.Web.MoveTo (938,40)//1111111111第一个坐标//
Call Plugin.Web.LeftClick(938,40)
Call Plugin.Web.MoveTo(938,40)
Delay 78
Call Plugin.Web.LeftDoubleClick(938,40)
Delay 109
Call Plugin.Web.LeftUp(938,40)
Call Plugin.Web.MoveTo(938,40)
Delay 2637
Call Plugin.Web.KeyPress(98) //野坐标//
Delay 234
Call Plugin.Web.KeyPress(97)
Delay 281
Call Plugin.Web.KeyPress (96) //11111111111第一个坐标//
Call Plugin.Web.MoveTo (974,40)//22222222222第二个坐标//
Call Plugin.Web.LeftClick(974,40)
Call Plugin.Web.MoveTo(974,40)
Delay 78
Call Plugin.Web.LeftDoubleClick(974,40)
Delay 109
Call Plugin.Web.LeftUp(974,40)
Call Plugin.Web.MoveTo(974,40)
Delay 2637
Call Plugin.Web.KeyPress(98) //野坐标//
Delay 234
Call Plugin.Web.KeyPress(105)
Delay 281
Call Plugin.Web.KeyPress (98) //22222222222第二个坐标//
Delay 1000
Call Plugin.Web.MoveTo(1021,44) //移动//
Delay 2137
Call Plugin.Web.LeftClick(1021,44)
Delay 8000
Call Plugin.Web.MoveTo (660,302)//野外势力位置//
Delay 3000
Call Plugin.Web.LeftClick(660, 302)
Delay 1000
Call Plugin.Web.MoveTo (773, 299)//战争//
Delay 3000
Call Plugin.Web.LeftClick(773, 299)
Delay 3000
Call Plugin.Web.MoveTo(368, 105)//全选//
Delay 1000
Call Plugin.Web.LeftClick(368, 105)
Delay 3000
Call Plugin.Web.MoveTo(908, 553)//确定//
Delay 1000
Call Plugin.Web.LeftClick(908, 553)
Delay 8000
Call Plugin.Web.MoveTo(941, 11)//点兵//
Delay 1000
Call Plugin.Web.LeftClick(941, 11)
Delay 3000
Call Plugin.Web.MoveTo(1015, 481)//补兵//
Delay 1000
Call Plugin.Web.LeftClick(1015, 481)
Delay 188000
Sub OnScriptExit()
Call Plugin.Web.Tips("脚本停止运行")
End Sub
3、如上脚本复制粘贴了,还不能使用,必须根据你自己刷野需求稍作修改,修改方法如下:
以刷第一个野的脚本为例:脚本中红色部分是你要修改的地方
4、按照上述步骤将野坐标中的六个数字依次修改好,在第一个野的结尾部分,有个语句:Delay 158000
这个为每刷完一个野之后的停留时间,这个时间 T(毫秒) = 2 * 出征时间(毫秒)。例如到张任郡城的出征时间为1分30秒,那么T = 180000 毫秒。最后的语句就是:Delay 180000
5、这样第一个野的脚本就编辑好了,按照同样的程序,编写第二个,第三个…………
6、编写号程序之后,点击安装后的网页按键精灵,进入并登入游戏账号,并移动到主城池,点兵,补兵,OK 下面就不用动了,进入下一个步骤。
7、点击调试:
8、再点击启动
9、最后可以将制作好的脚本,制作成按键精灵,下次直接运行就行了。
温馨提示:答案为网友推荐,仅供参考