Dynamically load a desired 'Found Image'

I use a lot of "If the screen contains 'Found Image' in area" actions like this:

These are set up by dragging the image you want to find into the blank box. Simple enough.

But what if I don't know the image I want to look for until macro run time?

Example "Did something change?":

  1. Capture image A in a particular area (x,y,w,h)
  2. Pause or do some other action
  3. Capture image B in the same area (x,y,w,h)
  4. Compare A & B to see if they are the same (nothing has changed) or different (something has changed)

Any ideas on how to accomplish this?

My best guess is to write the first image to a file and then load it into the blank box somehow, but loading it back into the macro is where I come up short.

Hey Greg,

The only way to dynamically work with found images is to build the action and run it from AppleScript using the technique Peter describes here:

Find Image on Screen using Clipboard Image?

-Chris

1 Like