当前位置: 首页 > 按键精灵 > 正文

按键精灵的找图找色命令

一、得到指定点颜色(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, 26
End If

二、区域找色

1
2
3
4
5
FindColor 0,0,1440,900,"3936FF",intX,intY
If intX >= 0 and intY >= 0 Then
    MessageBox "找到"
    TracePrint intX&","&intY
End If

三、模糊找色

1
2
3
4
5
FindColorEx 0,0,100,100,"3936FF",0,0.9,intX,intY
If intX >= 0 and intY >= 0 Then
    MessageBox "找到"
    TracePrint intX&","&intY
End If

四、中心找色

1
2
3
4
5
FindCenterColor 0,0,100,100,"3936FF",intX,intY
If intX >= 0 and intY >= 0 Then
    MessageBox "找到"
    TracePrint intX&","&intY
End If

五、区域找图

1
2
3
4
5
6
7
FindPic 4, 316, 84, 412, "attachment:\回收站.bmp", 0.9, intX, intY
If intX >= 0 and intY >= 0 Then
    MessageBox "找到"
    MoveTo intX, intY
    LeftDoubleClick  1
    TracePrint intX & "," & intY   
End If



上一篇: 按键精灵的数组 下一篇:按键精灵的窗口插件
返回顶部