Forums > MaxMSP

Keyboard shortcuts in a Max patch?

Nov 14 2010 | 12:33 pm

Is it possible to assign certain keys on the keyboard to do things in a max patch?

For instance, if I wanted the space bar to switch a toggle box on or off.

Nov 14 2010 | 1:13 pm

Yes, it is!
Try using [key] and/or [keyup] with [route] to get what you want.

Although, as far as I know these objects only work if Max is the frontmost application running.

Nov 14 2010 | 1:27 pm

You would have to use the [hi] object if you want the keys to work regardless of which application is currently in focus but generally [key], [keyup] and [modifiers] are enough.

Nov 14 2010 | 2:04 pm


Thanks very much! :)

Viewing 4 posts - 1 through 4 (of 4 total)

Forums > MaxMSP