I am trying to get it to find the instances of an image but even through I have 2 or 3 instances showing, it only finds 1 instance. If I make it so that only one instance is on the screen regardless of the position, it finds it just fine. However, if I put 2 instances on the screen then sometimes it finds the top instance and sometimes it finds the bottom instance but it always still only finds one instance.
My goal is to find the instance that is closest to the bottom of the page and click on that instance.
Here is the code that I am using:
Code: Select all
Let>WSI_TIMEOUT=240
//Wait for
WaitScreenImage>%BMP_DIR%\image_1.bmp,0.7,CCOEFF
//Find and Right Click Middle Right of
FindImagePos>%BMP_DIR%\image_1.bmp,SCREEN,0.7,8,XArr,YArr,NumFound,CCOEFF
If>NumFound>0
Let>k=NumFound-1
MouseMove>XArr_%k%,YArr_%k%
MessageModal>NumFound
//RCLick
Endif
Thanks,
Jason