我那个游戏,因为鼠标移到怪身上后,下面有个地方的颜色会变,所以写了个脚本扫怪点击,但出现这么个问题,鼠标每次经过怪的时候会停,但就像刹不住车一样,它会向前滑一小段才停下来,导致我点不了怪,WHY?百思不得其姐
以下是我写的移动鼠标那段脚本:
SX1 = 29
SY1 = 470
a = 17
b = 14
c = 28
d = 30
For 15
For d
SXD1 = SX1 + a
SYD1 = SY1 - b
MoveTo SXD1, SYD
Call 扫描时间()
FindCenterColor 365,495,367,497,"737B7D",intX,intY
If intX > 0 And intY > 0 Then
Delay 100
Goto 停止扫描1
End If
a = a + 17
b = b + 17
Next
d = d - 2
SX1 = SX1
SY1 = SY1 - c
a = 17
b = 14
Next
Rem 停止扫描1
MoveTo SXD1, SYD1
LeftClick 1
以下是我写的移动鼠标那段脚本:
SX1 = 29
SY1 = 470
a = 17
b = 14
c = 28
d = 30
For 15
For d
SXD1 = SX1 + a
SYD1 = SY1 - b
MoveTo SXD1, SYD
Call 扫描时间()
FindCenterColor 365,495,367,497,"737B7D",intX,intY
If intX > 0 And intY > 0 Then
Delay 100
Goto 停止扫描1
End If
a = a + 17
b = b + 17
Next
d = d - 2
SX1 = SX1
SY1 = SY1 - c
a = 17
b = 14
Next
Rem 停止扫描1
MoveTo SXD1, SYD1
LeftClick 1