dm_ret = dm.FindPic(0, 0, 1024, 768, "E:\cqjb\qx.bmp", "000000", 0.9, 0, X, Y)
If X > 0 Then
dm.moveTo X, Y
dm.LeftClick
End If
Delay 100
dm.keypress 120
Delay 1000
dm_ret = dm.FindPic(0, 0, 1024, 768, "E:\cqjb\hs2.bmp", "000000", 0.9, 0, X, Y)
If X > 0 Then
dm.moveTo X, Y
dm.LeftClick
End If
Delay 1000
dm_ret = dm.FindPic(0, 0, 1024, 768, "E:\cqjb\hs3.bmp", "000000", 0.9, 0, X, Y)
If X > 0 Then
dm.moveTo X, Y
dm.LeftClick
End If
Delay 1000
dm_ret = dm.FindPic(0, 0, 1024, 768, "E:\cqjb\sx.bmp", "000000", 0.9, 0, X, Y)
If X > 0 Then
dm.moveTo X, Y
dm.LeftClick
End If
dm_ret = dm.CmpColor(48,667,"b51800-000000|b51900-000000",0.9)
If dm_ret = 1 Then
//1代表等于红色不随机 上边48.660,用大漠工具截图的鼠标位置
//
TracePrint "相等"
dm_ret = dm.FindPic(0, 0, 1024, 768, "E:\cqjb\sj.bmp", "000000", 0.9, 0, X, Y)
If X > 0 Then
dm.moveTo X, Y
dm.RightClick
End If
dm_ret = dm.CmpColor(48,667,"b51800-000000|b51900-000000",0.9)
If dm_ret = 1 Then
//1代表等于红色不随机 上边48.660,用大漠工具截图的鼠标位置
//
TracePrint "相等"
dm_ret = dm.FindPic(0, 0, 1024, 768, "E:\cqjb\sj.bmp", "000000", 0.9, 0, X, Y)
If X > 0 Then
dm.moveTo X, Y
dm.RightClick
End If
Delay 2500
End If
这一段脚本是血量不足 随机,。 怎么让这一段代码,实时监测,而且不影响上边的脚本回收。 也就是 上边正常回收
这段血量检测随机脚本 试试达到检测效果??? 求大神 给个详细代码脚本、麻烦你了