Best way to ensure clicking image on apps

Hi

I have a macro that launches various local apps on my computer and clicks images when the apps are in front. I’m using if/ else. But the macro gets cancelled because sometimes it cannot find the images as I’m in front of another app. What is the best way to ensure that KM will only click the image for that particular app, when I command-tab to that app only and not before.

Thanks.

Have you tried a "Pause Until" app is frontmost?

2 Likes

Depending on exactly what you are trying to do, if you want a specific behaviour to happen when an application comes to the front, use a macro with the Application trigger to trigger your actions.

1 Like

Hi @JMichaelTX

Your images helped me resolve the problem.

Thanks.

1 Like