Trackpad click on a certain image as a trigger

Hey guys,
I want to open a folder when I click on a image on my wallpaper. In this case on the + icon. I have a macbook but no external mouse, so I don't know how to use the trackpad click as a trigger.

EDIT: 2017-06-04 3:11 PM CT

KM does not offer a "click" trigger. For your choices, see Triggers (KM Wiki).
Technically, this can be done. See my below post.

I would suggest either a hotkey or typed string trigger, probably based on the folder name. For example, if the folder is "Documents", I would use:
;f.doc
OR
D

This would trigger the Open a File Folder or Application action (KM Wiki).

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">

Thank you very much!!

1 Like

@Lush92,

If one of the above posts solves your problem/question as originally stated, please check the “Solved” checkbox (click for details) at the bottom of that post.

Otherwise, please post your remaining questions/issues about this problem.
If you have other questions, please start a new topic.

Actually , it seems that the trackpad click (w/ modifiers) doesn’t do anything. When I Try the macro, though, it works. Even if I use the trackpad click for a simpler action, such as a Notification , it doesn’t do anything. Thanks for your time.

Maybe KM sees your trackpad differently from my internal trackpad on my MBP.
Edit the macro, and click once in the trigger field to select it, and then click again to record your trackpad click.

Could be an issue with the Found Image action.
Try putting a notification as the first Action to confirm the macro has been triggered.

I’ve tried this and the trigger field remains the same ( Apple Internal …the trigger you’ve put in). I don’t know why my trackpad click is not recognized.