# \[Solved\] Double triple press , simple RF remote

**URL:** <https://discourse.nodered.org/t/solved-double-triple-press-simple-rf-remote/7408>\
**Category:** General\
**Created:** [30 January 2019 21:24 UTC](https://discourse.nodered.org/t/solved-double-triple-press-simple-rf-remote/7408 "2019-01-30T21:24:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aihysp](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/aihysp/32/2278_2.png) [@aihysp](https://discourse.nodered.org/u/aihysp)\
**Post date:** [30 January 2019 21:24 UTC](https://discourse.nodered.org/t/solved-double-triple-press-simple-rf-remote/7408/1 "2019-01-30T21:24:09Z")

</div>

Hi can anyone give me an example for something that will count how many times my MQTT \> RF \> RF remote been pressed?

so let's say in a time frame of two seconds, i press it twice, i will get an MQTT msg in Node, and i will be able to count them

it will be cool if every press will extend the delay (time frame of two seconds)

thanks for any help!

---

<div class="post-metadata">

**Author:** ![aihysp](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/aihysp/32/2278_2.png) [@aihysp](https://discourse.nodered.org/u/aihysp)\
**Post date:** [30 January 2019 21:28 UTC](https://discourse.nodered.org/t/solved-double-triple-press-simple-rf-remote/7408/2 "2019-01-30T21:28:48Z")

</div>

> [@Node-red rf button multifunction single/double/triple press](https://discourse.nodered.org/t/node-red-rf-button-multifunction-single-double-triple-press/3182):
>
> How to make flow for rf button multifunction(single press/double press/triple press)? my button sends command only when pressed. Can someone show me example flow or share similar solution.

found this code ...  
can anyone think of a way to make the delay reset for every press i get?

---

<div class="post-metadata">

**Author:** ![aihysp](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/aihysp/32/2278_2.png) [@aihysp](https://discourse.nodered.org/u/aihysp)\
**Post date:** [30 January 2019 21:37 UTC](https://discourse.nodered.org/t/solved-double-triple-press-simple-rf-remote/7408/3 "2019-01-30T21:37:30Z")

</div>

Marking this as solved the code is good , RF is shit

Talking to myself here hhh 🙂
