My original goal was to make a certain bot like script. That would find the bitmap, and click on it. (bitmap and not pixel because i want it to be precise). The only problem with the script below is... it doesn't find the bitmap, and i'd like to know is this because the active window is a java client. Of course there can be many other reasons... An advanced thank you to any help given!
Code: Select all
f1::
ImageSearch, FoundX, FoundY, 40,40, 300, 300, C:\plo.bmp
CoordMode Pixel
ImageSearch, FoundX, FoundY, 0, 0, A_ScreenWidth, A_ScreenHeight, plo.bmp
if ErrorLevel = 2
MsgBox Could not conduct the search.
else if ErrorLevel = 1
MsgBox Icon could not be found on the screen.
else
MsgBox The icon was found at %FoundX%x%FoundY%.