# Reset distance trip A by hold button.

**URL:** <https://forum.realdash.net/t/reset-distance-trip-a-by-hold-button/1015>\
**Category:** Help, tips and tricks\
**Created:** [August 27, 2021, 10:08pm UTC](https://forum.realdash.net/t/reset-distance-trip-a-by-hold-button/1015 "2021-08-27T22:08:09Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mozgolom](https://forum.realdash.net/letter_avatar_proxy/v4/letter/m/b487fb/32.png) [@Mozgolom](https://forum.realdash.net/u/Mozgolom)\
**Post date:** [August 27, 2021, 10:08pm UTC](https://forum.realdash.net/t/reset-distance-trip-a-by-hold-button/1015/1 "2021-08-27T22:08:09Z")

</div>

How to reset the distance trip A if some variable has taken the value 1 for 1 sec?

---

<div class="post-metadata">

**Author:** ![realdashdev](https://forum.realdash.net/user_avatar/forum.realdash.net/realdashdev/32/6_2.png) [@realdashdev](https://forum.realdash.net/u/realdashdev)\
**Post date:** [August 31, 2021, 4:40am UTC](https://forum.realdash.net/t/reset-distance-trip-a-by-hold-button/1015/2 "2021-08-31T04:40:33Z")

</div>

- Create a new button gauge
- Go to Look’n Feel-\>Special-\>Button
- Set Initial Action Delay (MS) to the wanted value, like 1000 for 1 second.
- Enable ‘Actions When Pressed Down’ option.

Of course you can use triggers with dummy timers to make this automatic, but your question title stated ‘by hold button’

---

<div class="post-metadata">

**Author:** ![Mozgolom](https://forum.realdash.net/letter_avatar_proxy/v4/letter/m/b487fb/32.png) [@Mozgolom](https://forum.realdash.net/u/Mozgolom)\
**Post date:** [September 1, 2021, 6:59pm UTC](https://forum.realdash.net/t/reset-distance-trip-a-by-hold-button/1015/3 "2021-09-01T18:59:47Z")

</div>

It works, but my problem is different. There is some variable that can be 0 or 1. I have bound my button to this variable. And when the variable is equal to 1 for a long time the button does not work. If use the mouse to press the button on the screen for a long time, the button works as needed.

---

<div class="post-metadata">

**Author:** ![realdashdev](https://forum.realdash.net/user_avatar/forum.realdash.net/realdashdev/32/6_2.png) [@realdashdev](https://forum.realdash.net/u/realdashdev)\
**Post date:** [September 2, 2021, 6:50am UTC](https://forum.realdash.net/t/reset-distance-trip-a-by-hold-button/1015/4 "2021-09-02T06:50:56Z")

</div>

For that you need a dummy timer that will reset your variable (and itself) on certain period.

---

<div class="post-metadata">

**Author:** ![Mozgolom](https://forum.realdash.net/letter_avatar_proxy/v4/letter/m/b487fb/32.png) [@Mozgolom](https://forum.realdash.net/u/Mozgolom)\
**Post date:** [September 2, 2021, 3:15pm UTC](https://forum.realdash.net/t/reset-distance-trip-a-by-hold-button/1015/5 "2021-09-02T15:15:43Z")

</div>

Tell me in more detail about this please. What I need to do?

---

<div class="post-metadata">

**Author:** ![Mozgolom](https://forum.realdash.net/letter_avatar_proxy/v4/letter/m/b487fb/32.png) [@Mozgolom](https://forum.realdash.net/u/Mozgolom)\
**Post date:** [September 2, 2021, 8:29pm UTC](https://forum.realdash.net/t/reset-distance-trip-a-by-hold-button/1015/6 "2021-09-02T20:29:24Z")

</div>

I can’t reset and freeze the dummy timer. It turns out only to reset it to zero by “set value” after which it continues to count. How to stop the dummy timer?

---

<div class="post-metadata">

**Author:** ![realdashdev](https://forum.realdash.net/user_avatar/forum.realdash.net/realdashdev/32/6_2.png) [@realdashdev](https://forum.realdash.net/u/realdashdev)\
**Post date:** [September 3, 2021, 8:23am UTC](https://forum.realdash.net/t/reset-distance-trip-a-by-hold-button/1015/7 "2021-09-03T08:23:59Z")

</div>

Dummy timers can not be stopped, but you can use Set Value to (re)set them in certain value. For example, make a trigger that checks if timer \>= 1, as a action set timer value to 0. There you have timer that can trigger any action once per second.
