The functional code is:
Code: Select all
CoordMode, Pixel, Window
ImageSearch, FoundX, FoundY, 0, 0, 2350, 2350, %A_ScriptDir%\Imagens\Screen_110.png
CenterImgSrchCoords(A_ScriptDir "\Imagens\Screen_110.png", FoundX, FoundY)
If ErrorLevel = 0
{
Goto, M01_55_110
Return
}
That said, I’m trying to search the images using a different way, but after a lot of search I still can't t make the code work:
Code: Select all
Loop, 200
{
var += 1
CoordMode, Pixel, Window
ImageSearch, FoundX, FoundY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, %A_ScriptDir%\Imagens\Screen_L1%var%.png
CenterImgSrchCoords(A_ScriptDir "\Imagens\Screen_L1%var%.png", FoundX, FoundY)
If var = 20
var = 1
If ErrorLevel = 0
Click, %FoundX%, %FoundY% Left, 1
Sleep, 10
}
Until ErrorLevel = 0
Return
Any tip or help to how to solve this would be appreciated