I want some help, I'm trying to identify an image on the screen, using imageSearch.
I'm trying on a photo, I have the whole photo, and the clipping of what I want him to find in it, but he doesn't find the image, I don't know if I'm implementing something wrong, follow the images and my script.
Main Image:
Find Image:
Script:
Code: Select all
#SingleInstance Force
#InstallKeybdHook
#InstallMouseHook
#MaxHotkeysPerInterval 99000000
#HotkeyInterval 99000000
#KeyHistory 0
#WinActivateForce
Process, Priority, , A
SetBatchLines, -1
SetKeyDelay, 30, 30
SetMouseDelay, -1
SetDefaultMouseSpeed, 0
SetWinDelay, -1
SetControlDelay, 50
F5::
CoordMode, Pixel, Screen
; captura uma imagem da tela inteira
ImageSearch, foundX, foundY, 0, 0, A_ScreenWidth, A_ScreenHeight, bp.jpg
; verifica se a imagem foi encontrada
if ErrorLevel = 0
{
MsgBox Imagem encontrada!
}
else{
MsgBox Imagem nao encontrada na tela!
}
Return