按键精灵吧 关注:499,736贴子:1,015,824
  • 1回复贴,共1

求大神改一下 感觉自己傻傻的

只看楼主收藏回复

Hwnd = Plugin.Window.MousePoint()
rem a
//-----------------------------------
Sub pd()
Dim q(3)
q(0) = "5A614A" //过图
q(1) = "0B650B" //团队框架
q(2) = "60E9FF" //登录界面
q(3) = "0B3150"
for i = 0 To 3
FindColor 27,145,158,425,q(i),intX,intY
If intX > 0 And intY > 0 Then
MessageBox "找到"
EndScript
Exit For
End If
next
End Sub
For 20
For 20
Call Plugin.Bkgnd.KeyPress(Hwnd, 50)
Call Plugin.Bkgnd.Keydown(Hwnd, 68)
Call pd
Call Plugin.Bkgnd.Keyup(Hwnd, 68)
Delay 70
Call Plugin.Bkgnd.Keydown(Hwnd, 68)
Delay 135
Call Plugin.Bkgnd.Keyup(Hwnd, 68)
Delay 70
Call Plugin.Bkgnd.Keydown(Hwnd, 68)
Delay 135
Call Plugin.Bkgnd.Keyup(Hwnd, 68)
Delay 70
Call Plugin.Bkgnd.Keydown(Hwnd, 68)
Delay 135
Call Plugin.Bkgnd.Keyup(Hwnd, 68)
Delay 70
Next
Call Plugin.Bkgnd.KeyPress(Hwnd, 51)
Call pd
Delay 800
Call pd
Delay 800
Call Plugin.Bkgnd.KeyPress(Hwnd, 54)
Call pd
Delay 800
Call pd
Delay 800
Call Plugin.Bkgnd.KeyPress(Hwnd, 53)
Call pd
Delay 800
Call pd
Delay 800
Call pd
Delay 800
Call pd
Delay 800
Next
Call Plugin.Bkgnd.KeyPress(Hwnd, 52)
Call pd
Delay 800
Call pd
Delay 800
Call pd
Delay 800
Call pd
Delay 800
Call pd
Delay 800
Call pd
Delay 800
Call pd
Delay 800
Call pd
Delay 800
Call pd
Delay 800
Call pd
Delay 800
Call Plugin.Bkgnd.KeyPress(Hwnd, 55)
Call pd
Delay 800
Call pd
Delay 800
Call pd
Delay 800
Call Plugin.Bkgnd.KeyPress(Hwnd, 56)
Call Plugin.Bkgnd.KeyPress(Hwnd, 57)
Call pd
Delay 800
Call pd
Delay 800
Call pd
Delay 800
Call pd
Delay 800
Call pd
Delay 800
Call pd
Delay 800
Call pd
Delay 800
Call pd
Delay 800
Call pd
Delay 800
Call pd
Delay 800
Call Plugin.Bkgnd.KeyPress(Hwnd, 54)
Call pd
Delay 800
Call pd
Delay 800
goto a


1楼2020-09-15 19:30回复
    endscript是退出脚本哦


    IP属地:广东来自Android客户端2楼2020-09-15 22:27
    回复