# Button Repeat Action in Vision

**URL:** <https://forum.inductiveautomation.com/t/button-repeat-action-in-vision/88107>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [March 30, 2024, 5:07pm UTC](https://forum.inductiveautomation.com/t/button-repeat-action-in-vision/88107 "2024-03-30T17:07:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![robertm](https://avatars.discourse-cdn.com/v4/letter/r/ea5d25/32.png) [@robertm](https://forum.inductiveautomation.com/u/robertm)\
**Post date:** [March 30, 2024, 5:07pm UTC](https://forum.inductiveautomation.com/t/button-repeat-action-in-vision/88107/1 "2024-03-30T17:07:24Z")

</div>

I'm having to convert an existing RSView32 app over to ignition. Trying to keep the same general appearance for continuity with operators. On a particular popup there is an inc/dec set of buttons. No problem implementing that with scripting. But on the old RSView32 button there was an option to do a repeat action script while the button was held down at a set interval. I've searched and searched thinking that would a common action, but haven't found anything. Maybe I'm searching the wrong terms.

I've thought about putting a timer on the popup and have the timer run the script to do the incrementing until the button is released. But I'm worried that a button release fails and the timer stays enabled. That would be bad.

I've also thought about replacing this with a slider which would be much easier to manipulate. The problem is that there are two inc/decs that have to work in concert with each other. A refill setpoint and a shutoff setpoint. The refill setpoint can't exceed the shutoff setpoint, and the shutoff setpoint cannot go below the refill setpoint. I could bind the min/maxes of the slider to the other's value, but that rescales the slider presentation. I wish there was a separate clamp on the slider but keep the scale the same (0-100).

I thought about dynamically binding the tag's engineering clamps, but that seems to throw a popup error when attempting to write that value instead of just transparently clamping it.

Suggestions?
