Code: Select all
ImgSearch(image)
{
ImageSearch, FoundX, FoundY, 0, 0, A_ScreenWidth, A_ScreenHeight, %image%
if (ErrorLevel = 2)
MsgBox Could not conduct the search.
else if (ErrorLevel = 1)
return false
else
return true
}
I've read over and over that by default CoordMode is meant to be limit to a single active window, but this doesn't appear to be true. What am I doing wrong? It must be A_ScreenWidth and Height, right? If so, is there a constant for the current active window width and height?