How to make a button that send msg once on click and sends msg repeated at set interval on button hold?

There are a few examples around the forum. Here is one such example: Adding `output` function to buttons designed in `template` node - #54 by Steve-Mcl