Mouse state with a specific object (slider)

Auris's icon

Is there a way to report whether the mouse is clicked on a certain object, in my case slider. Object mousestate reports when the mouse is clicked anywhere in the patcher window, I'm looking for a way to do that with one or more specific sliders. I have data coming in my sliders, and want the stream to stop when it's clicked and output new slider values and resume the stream when released.

thanks.

Luke Hall's icon

Try giving your [slider] object a name and using a combination of [mousestate] and [hover].

Auris's icon

Nice one, thanks! Didn't know this trick.