非后台版:
Rem 主脚本
MessageBox "请将游戏窗口置于最前,点击确定后5秒开始挂机。"
Delay 5000
KeyDown 17, 1
KeyPress 113, 1
KeyUp 17, 1
Delay 1000
KeyPress 49, 1
Delay 1000
Rem a
//点击垂钓
MoveTo 925, 542
Delay 1000
LeftClick 1
//在屏幕内寻找上钩图
i2=1
While i2=1
FindPic 0,0,1920,1080,"D:\1.bmp",0.5,intX,intY
If intX> 0 And intY> 0 Then
i2 = 0
End If
Wend
//点击收杆
MoveTo 993, 545
Delay 100
LeftClick 1
Delay 3000
Goto a
后台版:(自行百度下载“后台键盘鼠标插件V6.10",否则无法使用后台功能)
Call Plugin.bgkms6_10.KMTransform()
Hwnd = Plugin.Window.Find(0, "剑侠情缘网络版叁PakV3")
Call Plugin.Window.Active(Hwnd)
Call Plugin.bgkms6_10.FakeWindowState(Hwnd, 2)
//目标窗口对应的进程总是以为目标窗口在前台,361度6.10
Rem 主脚本
Delay 5000
Call Plugin.Bkgnd.KeyPress(Hwnd, 49)
Rem a
//点击垂钓
Delay 1000
Call Plugin.Bkgnd.LeftClick(Hwnd, 925, 542)
Delay 15780
Call Plugin.Bkgnd.LeftClick(Hwnd, 993, 545)
Delay 3000
Call Plugin.Bkgnd.RightClick(Hwnd, 36, 202)
Delay 1000
Goto a