- 版主
- 211464
- 21164
- 13
- 258 朵
- 47817 个
- 60 个
- 263800
- 2008-12-23
|
1#
t
T
发表于 2011-08-03 09:04
|
|只看楼主
问题:怎么数组找图? 答案: 按键精灵8及以上语法 - Dim a(9)
- //图片数组赋值(需要把图片添加到附件里)
- a(0)="Attachment:\0.bmp"
- a(1)="Attachment:\1.bmp"
- a(2)="Attachment:\2.bmp"
- a(3)="Attachment:\3.bmp"
- a(4)="Attachment:\4.bmp"
- a(5)="Attachment:\5.bmp"
- a(6)="Attachment:\6.bmp"
- a(7)="Attachment:\7.bmp"
- a(8)="Attachment:\8.bmp"
- a(9)="Attachment:\9.bmp"
- Call 查找图片数组()
- EndScript
- Sub 查找图片数组()
- For i=0 To 9
- Call FindPic(880,21,889,34,a(i),1,x,y)
- If x>0 and y>0 Then
- Exit For
- End If
- Next
- Rem 找到
- Msgbox "找到第 " & i & " 张图"
- End Sub
复制代码
|