Quote:
I know the picture is on the screen.
Your coding looks good, except "CoordMode, Pixel " as entropic suggested.
Here are some other areas I have found, some repetition wih previous poster.
1. BMPs must be at least 16 bit (per manual) I usually use 24 bit
2. Is the image you are searching for fully visible ?
3. Is the image area part of your program or another ?
4. is the image im a game or in some other program ?
games are sometimes hard/impossible to do imagesearch and pixelseaches on.
5. Try adding a fake image of your own and verify that the search can find it.
Here's example code, place it before your ImageSearch:
Code:
%image%=C:\Users\Chris\Desktop\istest\l158palace.bmp ; <--- this is your image
Gui, -Caption gui, margin, 0, 0
gui, add, picture, section vmybutton , %image%
gui, show,xcenter ycenter