For desktop apps I've been using the standard "Stores\Regions" repository, although for web testing there is the "images" repository which appears to be more functional.
The way I did it was create a bunch of regions using the manual scan option.
Once in the repositry crop it by editing with paint.net or suchlike.
In script:
- Create a picture of the region to find:
Dim mIconRegionPicture: Set mIconRegionPicture = Regions.GetPicture(pIconRegionName)
- Capture a Picture of the window of interest and crop if necessary to reduce the search area:
Dim FloorPlanWindow: Set FloorPlanWindow = FloorPlan.Picture(0, 0, -1, -1,False)
- Use the Picture.Find method using the region picture as a paramerter
Dim Found: Set found = FloorPlanWindow.Find(mIconRegionPicture, mLeft, mTop, mUseTransparency, mPixelTolerance, False, mColourTolerance, mIconRegionMaskPicture)
I noticed you've used the Regions.Find method which is essentially the same, I'm saving regions in PNG but that should not make any difference.
Can you attach a copy of the original file you have posted in imgur?