按键精灵吧 关注:499,934贴子:1,022,046
  • 1回复贴,共1

求大神看看 怎么按不同的键 执行不同的图片链接,应该加什么

只看楼主收藏回复

Do
加入按键z
KeyPress "m", 1
Delay 50
i=0
While i=0
FindPic 558,852,596,891,"Attachment:\第一张链接图片.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
KeyPress "m", 1
i=1
End If
Wend
加入按键x
KeyPress "n", 1
Delay 50
i=0
While i=0
FindPic 558,852,596,891,"Attachment:\第二张链接图片.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
KeyPress "n", 1
i=1
End If
Wend
加入按键c
KeyPress "b", 1
Delay 50
i=0
While i=0
FindPic 558,852,596,891,"Attachment:\第三张链接图片.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
KeyPress "b", 1
i=1
End If
Wend
Loop


1楼2015-02-14 13:12回复
    Dim 按键
    Do
    按键 = WaitKey()
    If 按键=90 then
    i=1
    Elseif 按键=88 then
    i=2
    Elseif 按键=67 then
    i = 3
    Else
    End
    Loop
    找图部分自己代入


    2楼2015-02-14 15:47
    回复