I’m on the fence about purchasing the application and looking for professional guidance or request in application. I have been an avid autohotkey user on windows for most documents.
I’m a KM newcomer, but just today I needed to do what you are describing. I actaully had to go one step further and do an image recognition and the have the mouse click in the center of that image (it was a UI button). Worked very well.
With regards to pixel coordinates, you would do what you are talking about. I’m pretty sure.
Could you explain what new “action” you used to do this, or how otherwise? I just can’t find image recognition features in KM. I have UI buttons as well that changes from one window configuration to another and need KM to recognize the new locations. I only see condition statements for pixel color, but not find pixel color or image recog. and pass coordinates to mouse. What you had mentioned sounds perfect for my needs.
I just tried the “Press Button” UI action. Unfortunately this action will not work.
Basically I have a floating window (always up front), but KM does not recognize this as a separate window. There are button and icons within this window that I need quicker access through scripts. This floating window typically changes location on my screen. In Autohotkey (windows), I can have it follow a specific pixel color within the floating window, modify coordinates to this relative position to always track the UI buttons to press. Hopefully this make sense. So far KM is not impressing me in this area.
Here is another way of doing a similar thing. In my case, the Delete command may look different depending on certain situations... and I wanted KM to find it when it was highlighted or not.:
You can have all this done in a single action.
See below.
In Click Mouse, you can change the “relative to the” to “found image’s center” and it will click in the center of the image.
This works very reliable in my macros. This does not however give you the coordinates of the found image, if you need these other places in the macro.