I have a handler that checks if a text exists using imagefound with dpi 150. Post that click action on same with imagelocation() fails. The imagelocation too uses dpi property. Any idea what could be the issue.
If you already know that the image or text is there its better to use the foundimagelocation() property to click where the imagefound command found it than to do a second search. So something like:
if imagefound(text:mytext)
click foundimagelocation()
else
logerror "unable to find " & mytext
end if
Thanks!!!. This solved my issue
The discrepancy often stems from rendering offsets or scaling differences between ImageFound and ImageLocation. Ensure both share identical search rectangles and ScaleToFit/DPI parameters, or simply use FoundImageLocation() right after ImageFound!