How do you make a script look for more than one picture? I know how to use the FindImagePos but if I want the script to look for first one picture and if that one is not found then look for another and so on and in the end if non of the pictures were found give me an error message and stop the script.
Bruno
Searching for several images using FindImagePos
Moderators: Dorian (MJT support), JRL
Code: Select all
FindImagePos>c:\today_button.bmp,SCREEN,0,1,X,Y,TodayFound
If>TodayFound>0
//Do something if today_button was found
Else
//Look for next image
FindImagePos>c:\GRD_button.bmp,SCREEN,0,1,X,Y,GRDFound
If>GRDFound>0
//Do something if GRD_button was found
Else
//Look for next image
FindImagePos>c:\ABC_button.bmp,SCREEN,0,1,X,Y,ABCFound
If>ABCFound>0
//Do something if GRD_button was found
Else
//Look for next image
FindImagePos>c:\DEF_button.bmp,SCREEN,0,1,X,Y,DEFFound
If>DEFFound>0
//Do something if GRD_button was found
Else
MessageModal>NO IMAGES FOUND
Goto>Exit
Endif
Endif
Endif
Endif
MessageModal>AT LEAST ONE IMAGE FOUND
Label>Exit