There are two approaches:
- Pause Until calculation MOUSEBUTTON()
- Pause Until calculation MOUSEBUTTON() != 0
or
- Set variable “Button Pressed” to 0
- Pause Until calculation Button Pressed
with another macro that is triggered on the button press using the USB Device Key trigger that sets the Button Pressed variable to 1.