CMD click macro for macOS

I am trying to use the mod layer to run a macro of cmd + left click to click through my codebase using the touchpad module. When i try using it on the mod layer, the click action works, but it doesn’t seem to register that the Lcmd should be held. Anyone have a macro like this?

CleanShot 2023-06-05 at 08.30.52

I have implemented similar behaviour via smart macros and it works perfectly. Probably leftGui corresponds to Left CMD but I am not sure. Try replacing leftControl with leftGui to check.


1 Like

I tried this and it still didn’t work… However, i added a delay of 0.1 seconds, and now it works perfectly :slight_smile:

1 Like

Once you have mentioned the delay, I realized that my setup worked inconsistently indeed. Thus I modified my smart macro to the following and now it works super well consistently =)

By the way, one of the advantages of using smart macro is that you can hold the mouse key with modifiers while moving the cursor. Not sure whether it is possible with plain macros.