Actually, this is NOT strictly true. You can trigger on a click by using the USB Device Key trigger (KM Wiki).
I do NOT recommend using this method, because a mouse click is one of the most common events on your Mac.
But, if you really want to use a click to trigger your macro, here is an example.
##Macro Library @Trigger Macro by Click on Image @Example
####DOWNLOAD:
<a class="attachment" href="/uploads/default/original/2X/1/1aecfe5f42403aee0c53747cff7f0e78f06c3599.kmmacros">@Trigger Macro by Click on Image @Example.kmmacros</a> (15 KB)
**Note: This Macro was uploaded in a DISABLED state. You must enable before it can be triggered.**
---
###ReleaseNotes
Author.@JMichaelTX
**PURPOSE:**
* **Demo Trigger by Click on Image**
**NOTICE: This macro/script is just an _Example_**
* It has had very limited testing.
* You need to test further before using in a production environment.
* It does not have extensive error checking/handling.
* It may not be complete. It is provided as an example to show you one approach to solving a problem.
HOW TO USE:
1. Position Mouse Cursor over center of image
2. Hold down Modifier Keys, and click to trigger
**MACRO SETUP**
* **Carefully review the Release Notes and the Macro Actions**
* Make sure you understand what the Macro will do.
* You are responsible for running the Macro, not me. 😉
.
* Assign a Trigger to this maro.
* Move this macro to a Macro Group that is only Active when you need this Macro.
* ENABLE this Macro.
.
* Change these Actions (all in magenta color)
* Find Image on Screen
* Paste in Image to find
* Adjust the "area" coordinates as necessary
* Open Folder
* Set to Path of Folder you want to open
TAGS: @Trigger @Click @Mouse
USER SETTINGS:
* Any Action in _magenta color_ is designed to be changed by end-user
ACTION COLOR CODES
* To facilitate the reading, customizing, and maintenance of this macro,
key Actions are colored as follows:
* GREEN -- Key Comments designed to highlight main sections of macro
* MAGENTA -- Actions designed to be customized by user
* YELLOW -- Primary Actions (usually the main purpose of the macro)
* ORANGE -- Actions that permanently destroy Variables or Clipboards,
OR IF/THEN and PAUSE Actions
REQUIRES:
1. Keyboard Maestro Ver 7.3+ (don't even ask me about KM 6 support).
2. El Capitan 10.11.6+
* It make work with Yosemite, but I make no guarantees.
**USE AT YOUR OWN RISK**
* While I have given this limited testing, and to the best of my knowledge will do no harm, I cannot guarantee it.
* If you have any doubts or questions:
* **Ask first**
* Turn on the KM Debugger from the KM Status Menu, and step through the macro, making sure you understand what it is doing with each Action.
---
<img src="/uploads/default/original/2X/5/5379692be523a29f3a79b442f4fb18f35851392f.png" width="567" height="957">