The easiest thing to do is to create a press and hold on your device buttons, on the before tab, put your macro with a page jump to the device at the end. On the after tab, just put a page jump to the device. Set the time to 1 second.
Now a quick press and release of the button will fire the macro, and a 1 second hold and release will just fire the page jump to the device without the macro.
There are 10 types of people in this world, There are those who understand binary, and those who don't!