按键精灵的找图找色命令
一、得到指定点颜色(GetPixelColor)1234GetColor=GetPixelColor(8,26)If GetColor = "3936FF" Then MoveTo 8, 26End If二、区域找色123
一、得到指定点颜色(GetPixelColor)
1 2 3 4 | GetColor=GetPixelColor(8,26)If GetColor = "3936FF" Then MoveTo 8, 26End If |
二、区域找色
1 2 3 4 5 | FindColor 0,0,1440,900,"3936FF",intX,intYIf intX >= 0 and intY >= 0 Then MessageBox "找到" TracePrint intX&","&intYEnd If |
三、模糊找色
1 2 3 4 5 | FindColorEx 0,0,100,100,"3936FF",0,0.9,intX,intYIf intX >= 0 and intY >= 0 Then MessageBox "找到" TracePrint intX&","&intYEnd If |
四、中心找色
1 2 3 4 5 | FindCenterColor 0,0,100,100,"3936FF",intX,intYIf intX >= 0 and intY >= 0 Then MessageBox "找到" TracePrint intX&","&intYEnd If |
五、区域找图
1 2 3 4 5 6 7 | FindPic 4, 316, 84, 412, "attachment:\回收站.bmp", 0.9, intX, intYIf intX >= 0 and intY >= 0 Then MessageBox "找到" MoveTo intX, intY LeftDoubleClick 1 TracePrint intX & "," & intY End If |


