How to Detect if a Kensington Expert Mouse Buttons 2, 3 or 4 are pressed in an IF statement

How to Detect if a Kensington Expert Mouse Buttons 2, 3 or 4 are pressed in an IF statement within a macro.
Is this possible?
I can use them as triggers, but would like to 'detect' them within a macro in an IF 'mouse button' - which does not detect them. Is there some other way to 'see' them if they are down.
Any input would be appreciated.

Detect Mouse Button Presses.kmmacros (30 KB)

Macro screenshot

Change the triggers to your mouse buttons; one pressed and one released for each.
Enable the red action and press one of the keys. Copy its TriggerValue from the resultant window and paste it into its Switch/Case conditional field. Repeat with the other two buttons.

Whenever you press one of the mouse buttons, its press/release state will be reflected in the pertinent variable, which can then be referenced in another macro.

1 Like