按键精灵吧 关注:499,727贴子:1,015,385
  • 6回复贴,共1

求救,多个区域找图,他们是同时执行的还是先后执行的?我上代码

只看楼主收藏回复

MoveTo 132, 962
Delay 1000
LeftClick 1
Delay 4000
FindPic 0,0,1960,1280,"Attachment:\最小化.bmp",0.8,intX,intY
If intX > 0 And intY > 0 Then
Delay 2000
KeyPress "F", 1
Delay 1000
MouseWheel 7
Delay 1000
End If
Delay 1000
FindPic 0,0,1960,1280,"Attachment:\002.bmp",0.8,intX,intY
If intX > 0 And intY > 0 Then
Call r1()
End If


IP属地:山东1楼2013-09-23 11:25回复
    Delay 1000
    FindPic 0,0,1960,1280,"Attachment:\003.bmp",0.8,intX,intY
    If intX > 0 And intY > 0 Then
    Call r1()
    End If
    Delay 1000
    FindPic 0,0,1960,1280,"Attachment:\004.bmp",0.8,intX,intY
    If intX > 0 And intY > 0 Then
    Call r1()
    End If
    Delay 1000
    FindPic 0,0,1960,1280,"Attachment:\005.bmp",0.8,intX,intY
    If intX > 0 And intY > 0 Then
    Call r1()
    End If
    Delay 1000
    FindPic 0,0,1960,1280,"Attachment:\006.bmp",0.8,intX,intY
    If intX > 0 And intY > 0 Then
    Call r1()
    End If
    Delay 1000
    FindPic 0,0,1960,1280,"Attachment:\最小化.bmp",0.8,intX,intY
    If intX > 0 And intY > 0 Then
    MoveTo intx, inty
    Delay 1000
    LeftClick 1
    Delay 1000
    End If
    Delay 1000
    Delay 1000
    MoveTo 132, 985
    Delay 1000
    LeftClick 1
    Delay 1000
    FindPic 0,0,1960,1280,"Attachment:\最小化.bmp",0.8,intX,intY
    If intX > 0 And intY > 0 Then
    Delay 1000
    KeyPress "F", 1
    Delay 1000
    MouseWheel 7
    Delay 1000
    End If
    Delay 1000
    FindPic 0,0,1960,1280,"Attachment:\008.bmp",0.8,intX,intY
    If intX > 0 And intY > 0 Then
    Call r1()
    End If
    Delay 1000
    FindPic 0,0,1960,1280,"Attachment:\009.bmp",0.8,intX,intY
    If intX > 0 And intY > 0 Then
    Call r1()
    End If
    Delay 1000
    FindPic 0,0,1960,1280,"Attachment:\010.bmp",0.8,intX,intY
    If intX > 0 And intY > 0 Then
    Call r1()
    End If
    Delay 1000
    FindPic 0,0,1960,1280,"Attachment:\011.bmp",0.8,intX,intY
    If intX > 0 And intY > 0 Then
    Call r1()
    End If
    Delay 1000
    FindPic 0,0,1960,1280,"Attachment:\012.bmp",0.8,intX,intY
    If intX > 0 And intY > 0 Then
    Call r1()
    End If
    Delay 1000
    FindPic 0,0,1960,1280,"Attachment:\最小化.bmp",0.8,intX,intY
    If intX > 0 And intY > 0 Then
    MoveTo intx, inty
    Delay 1000
    LeftClick 1
    Delay 1000
    End If
    Delay 1000
    Sub r1()
    Delay 1000
    MoveTo intx, inty
    Delay 1000
    RightClick 1
    FindPic 0,0,1960,1280,"Attachment:\邀请组队.bmp",0.8,intX,intY
    If intX > 0 And intY > 0 Then
    Delay 1000
    MoveTo intx, inty
    Delay 1000
    LeftClick 1
    Delay 1000
    End If
    Delay 1000
    End Sub


    IP属地:山东2楼2013-09-23 11:26
    回复
      我就是想实现打开游戏窗口然后按F打开好友列表然后组队,可是它打开好友之后,每个好友都右键点一遍,没有点组队,愁人,求指教,莫非我子程序有问题?


      IP属地:山东3楼2013-09-23 11:28
      回复
        时间问题


        来自Android客户端4楼2013-09-23 11:33
        回复
          "邀请组队"找不到


          IP属地:浙江来自Android客户端5楼2013-09-24 17:04
          回复
            因为你点击右键之后立即找图,可能没跳出来就在找了,所有加点延迟试试


            IP属地:浙江来自Android客户端6楼2013-09-24 17:05
            回复
              延迟太少 页面响应速度没跟上


              7楼2013-09-25 07:37
              回复