按键精灵吧 关注:499,797贴子:1,016,654
  • 1回复贴,共1

移动按键上的精准的滑动

只看楼主收藏回复

Function 精准划动(stx, sty, endx, endy, stdelay, movedelay, enddelay,id)
TouchDown stx, sty,id
Delay stdelay
If stx >= endx and sty >= endy Then
TouchMove endx-1, endy-1, id, movedelay/2
Delay movedelay/4
TouchMove endx, endy, id, movedelay / 4
ElseIf stx >= endx and sty <= endy Then
TouchMove endx-1, endy+1, id, movedelay/2
Delay movedelay/4
TouchMove endx, endy, id, movedelay / 4
ElseIf stx <= endx and sty <= endy Then
TouchMove endx+1, endy+1, id, movedelay/2
Delay movedelay/4
TouchMove endx, endy, id, movedelay / 4
ElseIf stx <= endx and sty >= endy Then
TouchMove endx+1, endy-1, id, movedelay/2
Delay movedelay/4
TouchMove endx, endy, id, movedelay / 4
End If
Delay enddelay
TouchUp id
End Function
精准划动(100,100,200,200,1000,500,1000,1)


IP属地:福建1楼2022-02-22 22:50回复
    这人很像山海狮🦭


    IP属地:广西来自iPhone客户端2楼2022-02-23 05:30
    回复