How would I create a function that would take 2 images and use the first image as the Search location and the 2nd image to click on?
For example, the first image might be UniqueName and the second image would be a dropdown button that is common to the page.
I don’t want to use hotspot because the button might change location and I can’t just use the 2nd image because its not unique.
This is something I am trying out.
function TwoImageInput SearchImage, ClickImage
put imageLocation (SearchImage) into newloc put newloc into newsideloc add (0, -30) to newloc add (100,20) to newsideloc repeat try Click ( imageName: ClickImage, searchRectangle: ( newloc, newsideloc ) ) exit repeat catch add (100, 0) to newsideloc end try end repeat
Is there a better way to do this?