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

**URL:** <https://discourse.nodered.org/t/how-to-make-a-button-that-send-msg-once-on-click-and-sends-msg-repeated-at-set-interval-on-button-hold/62614>\
**Category:** General\
**Created:** [14 May 2022 06:42 UTC](https://discourse.nodered.org/t/how-to-make-a-button-that-send-msg-once-on-click-and-sends-msg-repeated-at-set-interval-on-button-hold/62614 "2022-05-14T06:42:03Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [14 May 2022 06:55 UTC](https://discourse.nodered.org/t/how-to-make-a-button-that-send-msg-once-on-click-and-sends-msg-repeated-at-set-interval-on-button-hold/62614/2 "2022-05-14T06:55:31Z")

</div>

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](https://discourse.nodered.org/t/adding-output-function-to-buttons-designed-in-template-node/25591/54)

---

_[View the full topic](https://discourse.nodered.org/t/how-to-make-a-button-that-send-msg-once-on-click-and-sends-msg-repeated-at-set-interval-on-button-hold/62614)._
