level 1
http://bbs.ngacn.cc/read.php?tid=5607933&page=1 这是tellmewhen的设置参考。
下面的按键精灵脚本
Do
Delay 200
Key=GetLastKey() //检测上次按键
If Key = 51 Then //如果按下的是3,则。。
int1 = 0
int2 = 0
int3 = 0
int4 = 0
int5 = 0
int6 = 0
int7 = 0
int8 = 0
FindPic 25,15,46,34, "C:\Users\Administrator\Desktop\tietu\tubiao1.bmp", 0.9, intX, intY
If intX > 0 And intY > 0 Then
int1 = 1
End If
intX = 0
intY = 0
FindPic 58,13,80,36,"C:\Users\Administrator\Desktop\tietu\tubiao2.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
int2 = 1
End If
intX = 0
intY = 0
FindPic 93,11,109,32,"C:\Users\Administrator\Desktop\tietu\tubiao3.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
int3 = 1
End If
intX = 0
intY = 0
FindPic 124,15,142,35,"C:\Users\Administrator\Desktop\tietu\tubiao4.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
int4 = 1
End If
intX = 0
intY = 0
FindPic 26,47,46,69,"C:\Users\Administrator\Desktop\tietu\tubiao5.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
int5 = 1
End If
intX = 0
intY = 0
FindPic 58,50,79,69,"C:\Users\Administrator\Desktop\tietu\tubiao6.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
int6 = 1
End If
intX = 0
intY = 0
FindPic 89,45,109,66,"C:\Users\Administrator\Desktop\tietu\tubiao7.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
int7 = 1
End If
intX = 0
intY = 0
FindPic 122,47,145,70,"C:\Users\Administrator\Desktop\tietu\tubiao8.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
int8 = 1
End If
intX = 0
intY = 0
FindPic 182,19,202,38,"C:\Users\Administrator\Desktop\tietu\tubiao9.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
int1 = 1
End If
intX = 0
intY = 0
FindPic 216,17,237,35,"C:\Users\Administrator\Desktop\tietu\tubiao10.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
int2 = 1
End If
intX = 0
intY = 0
FindPic 249,17,266,36,"C:\Users\Administrator\Desktop\tietu\tubiao11.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
int3 = 1
End If
intX = 0
intY = 0
FindPic 277,15,300,36,"C:\Users\Administrator\Desktop\tietu\tubiao12.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
int4 = 1
End If
intX = 0
intY = 0
If int8 = 1 Then
KeyPress "Num 8", 1
ElseIf int6 = 1 Then
KeyPress "Num 6", 1
ElseIf int7 = 1 Then
KeyPress "Num 7", 1
ElseIf int1 = 1 Then
KeyPress "Num 1", 1
ElseIf int5 = 1 Then
KeyPress "Num 5", 1
ElseIf int2 = 1 Then
KeyPress "Num 2", 1
ElseIf int3 = 1 Then
KeyPress "Num 3", 1
ElseIf int4 = 1 Then
KeyPress "Num 4", 1
End If
End If
Loop //循环
2012年10月25日 00点10分