12-30-2024 04:44 PM
@raphschru wrote:
The objective was to have only one event when the user releases the mouse after sliding, since the OP wants to play the sound only once. In your example, it fires events continuously.
Ah, only read the first half of the description. This should work in typical scenarios... (assuming the sounds are short)
12-30-2024 06:40 PM - edited 12-30-2024 06:55 PM
@altenbach wrote:
@raphschru wrote:
The objective was to have only one event when the user releases the mouse after sliding, since the OP wants to play the sound only once. In your example, it fires events continuously.Ah, only read the first half of the description. This should work in typical scenarios... (assuming the sounds are short)
Same as for Paul's example, this won't work if the user releases the mouse out of the VI window, and this isn't even a rare corner case.
This is quite typical, when you want to make sure to set a slider to its minimal or maximal value, that you overshoot with your mouse to snap it to the scale limit.
If the slider is close to the window border, it will fail often.
A simpler solution here would require NI/Emerson to implement a "Global Mouse Up" event.
Regards,
Raphaël.