Testing which modifier keys are pressed… A simple way of modifying the actions of your macro by adding the OPT key when you call it

Testing which modifier keys are pressed…

A simple way of modifying the actions of your macro by adding the OPT key when you call it.

My keyboard convention is
Global CTL+CMD+Letter Switch/activate an application
Local CTL+OPT+CMD+Letter Local macros within an application
Letter becomes digit for test macros
However there are some exceptions, I use CC+V for Switch to VLC
and COC+V for switch to VLC and press the space bar i.e. pause on/off.

I currently have TWO macros to do this, but wondered if they could be combined.with the logic

If OPT key pressed
then do COC+V logic
else do CC + V logic.

The attached image shows the test logic in general for doing this.
I will post the VLC macro logic separately.

1 Like