mousefilter or mousestate alternative that works in Ableton Live?

dennisdesantis's icon

Hi folks,

I'm working on a patch that needs to know the mouse button status, but when it's anywhere within Live (not necessarily within Max).

As far as I can tell, mousefilter and mousestate only work if the Max device itself has focus. I'm curious if anyone else has solved this issue.

Thanks,
Dennis

dennisdesantis's icon

Actually, thinking about it more, I'd be happy with a solution that works anywhere, as long as it's not restricted to being in a Max window. It doesn't need to be within Live.

Basically, I just need to know the mouse button state, regardless of where the mouse is.

Roth's icon

Check out the hi object. I can't promise that it works in Live (haven't used Max4Live for a while on this computer, so I'm not sure if I have it setup right now).

dennisdesantis's icon

Hi Roth,

Thanks for the suggestion. I thought about that, but it has a couple of its own issues:

- on Windows machines, the mouse isn't seen by [hi] (as far as I can tell)
- (ideally) it should work without configuration, for any user, using any mouse or trackpad.

Roth's icon

Hmm, I only use Windows for some development/web work when I can't use OS X or another *nix so sorry, don't have any other suggestions.

Brian Henry's icon

Stumbled across this and necro-posting for future generations

mousestate does work in Max For Live if it is sent "poll" message

mousestate.amxd
amxd 26.22 KB