Code: Select all
loop
{
CoordMode, Pixel, Window
ImageSearch, FoundX, FoundY, 10, 9, 536, 69, apple.png
If ErrorLevel = 0
{
; display number 1 onscreen
}
CoordMode, Pixel, Window
ImageSearch, FoundX, FoundY, 10, 9, 536, 69, orange.png
If ErrorLevel = 0
{
; display number 2 onscreen
}
CoordMode, Pixel, Window
ImageSearch, FoundX, FoundY, 10, 9, 536, 69, mango.png
If ErrorLevel = 0
{
; display number 3 onscreen
}
}
there are 3 imagesearch which is apple, orange and mango.
if apple is found > show 1 on the middle of the screen and its clickable through it
if orange is found > show 2 on the middle of the screen and its clickable through it
if mango is found > show 3 on the middle of the screen and its clickable through it
basically if the fruits are found, display onscreen text on the middle of the screen and text can be click through which doesnt obstruct clicking.
if the 3 fruits are not present then display 0 text