Specify Closest Image on Move and Click at Image Action

Hello Giny,

Features get implemented if/when system APIs allow, and if/when the developer wants to spend the time.

AutoHotKey is a very mature utility and has a kitchen sink full of features.

As it happens this feature made it into Keyboard Maestro 7.

For Each.kmactions (17 KB)

The image in my macro probably won't work for you, because of the specifics of my system – but it's a folder on the Desktop.

What is displayed in the window is the (left,top,width,height,fuzz) of the first found image.

You can use those in a click action.

You can break out items from the list using a Set Variable to Text action and performing a calculation – the bracketed number is the position in the array.

%Calculate%imageVar[1]%
%Calculate%imageVar[2]%

Using the calculation directly in a Click action requires a little different syntax:

So. You should now have enough information to construct your macro.

-Chris

https://wiki.keyboardmaestro.com/collection/Found_Images

2 Likes