Button Long Press

Anyone ever do something where a short press does one thing and a long press does something else?

Looking for some direction how I might go about programming that.

Thanks

[quote=“tbackus”]Anyone ever do something where a short press does one thing and a long press does something else?

Looking for some direction how I might go about programming that.

Thanks[/quote]

You could put a timer component on a screen and bind it’s running property to the Control Value of a momentary button. Pressing the button enables the timer to run and start accumulating seconds.
Then a mouse or key released script could be programmed on the button to look at the value of the timer’s accumulator.

If you do this, make sure to reset the timer’s accumulator back to 0 in the script.